diff options
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/hbffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/hbffmpeg.c b/libhb/hbffmpeg.c index f5a140c75..f9edc4bd1 100644 --- a/libhb/hbffmpeg.c +++ b/libhb/hbffmpeg.c @@ -103,7 +103,7 @@ hb_buffer_t * hb_avframe_to_video_buffer(AVFrame *frame, AVRational time_base) int stride = buf->plane[pp].stride; int height = buf->plane[pp].height; int linesize = frame->linesize[pp]; - int size = linesize < stride ? linesize : stride; + int size = linesize < stride ? ABS(linesize) : stride; uint8_t * dst = buf->plane[pp].data; uint8_t * src = frame->data[pp]; |