[FFmpeg-cvslog] avcodec/mpegvideo_enc: Don't pretend input to be non-refcounted
Andreas Rheinhardt
git at videolan.org
Tue Oct 10 01:31:56 EEST 2023
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Oct 5 23:53:06 2023 +0200| [18f7d8d88029a99d7f7b040b0393aecae80b707e] | committer: Andreas Rheinhardt
avcodec/mpegvideo_enc: Don't pretend input to be non-refcounted
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=18f7d8d88029a99d7f7b040b0393aecae80b707e
---
libavcodec/mpegvideo_enc.c | 3 +--
1 file changed, 1 insertion(+), 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;
More information about the ffmpeg-cvslog
mailing list