aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-05 23:53:06 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-10 00:20:44 +0200
commit18f7d8d88029a99d7f7b040b0393aecae80b707e (patch)
tree58ba7199691ec201e1eca4121b6c9149870c9ef9 /libavcodec
parentf5220475de6c2dbb201b946062a6d47d1496911e (diff)
downloadffmpeg-18f7d8d88029a99d7f7b040b0393aecae80b707e.tar.gz
avcodec/mpegvideo_enc: Don't pretend input to be non-refcounted
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo_enc.c3
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;