diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-05 23:53:06 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-10 00:20:44 +0200 |
commit | 18f7d8d88029a99d7f7b040b0393aecae80b707e (patch) | |
tree | 58ba7199691ec201e1eca4121b6c9149870c9ef9 | |
parent | f5220475de6c2dbb201b946062a6d47d1496911e (diff) | |
download | ffmpeg-18f7d8d88029a99d7f7b040b0393aecae80b707e.tar.gz |
avcodec/mpegvideo_enc: Don't pretend input to be non-refcounted
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 30930eb030..71947aceaa 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1141,8 +1141,7 @@ static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg) } } - if (!pic_arg->buf[0] || - pic_arg->linesize[0] != s->linesize || + if (pic_arg->linesize[0] != s->linesize || pic_arg->linesize[1] != s->uvlinesize || pic_arg->linesize[2] != s->uvlinesize) direct = 0; |