avcodec/mpegvideo_enc: Don't pretend input to be non-refcounted

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2023-10-05 23:53:06 +02:00
parent f5220475de
commit 18f7d8d880

View File

@ -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;