mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 22:00:51 +08:00
mpegvideo: remove last_picture_ptr / h264 assert.
This assert is no longer true since h264 error concealment needs
last_picture_ptr to be set.
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 91672504a4)
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Conflicts:
libavcodec/mpegvideo.c
This commit is contained in:
committed by
Diego Biurrun
parent
9858a723cb
commit
d1c490448c
@@ -1166,9 +1166,6 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
|
||||
Picture *pic;
|
||||
s->mb_skipped = 0;
|
||||
|
||||
assert(s->last_picture_ptr == NULL || s->out_format != FMT_H264 ||
|
||||
s->codec_id == CODEC_ID_SVQ3);
|
||||
|
||||
/* mark & release old frames */
|
||||
if (s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3) {
|
||||
if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr &&
|
||||
|
||||
Reference in New Issue
Block a user