You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
h264dec: fix dropped initial SEI recovery point
This commit is contained in:
@@ -452,7 +452,6 @@ void ff_h264_flush_change(H264Context *h)
|
|||||||
if (h->cur_pic_ptr)
|
if (h->cur_pic_ptr)
|
||||||
h->cur_pic_ptr->reference = 0;
|
h->cur_pic_ptr->reference = 0;
|
||||||
h->first_field = 0;
|
h->first_field = 0;
|
||||||
ff_h264_sei_uninit(&h->sei);
|
|
||||||
h->recovery_frame = -1;
|
h->recovery_frame = -1;
|
||||||
h->frame_recovered = 0;
|
h->frame_recovered = 0;
|
||||||
}
|
}
|
||||||
@@ -466,6 +465,7 @@ static void flush_dpb(AVCodecContext *avctx)
|
|||||||
memset(h->delayed_pic, 0, sizeof(h->delayed_pic));
|
memset(h->delayed_pic, 0, sizeof(h->delayed_pic));
|
||||||
|
|
||||||
ff_h264_flush_change(h);
|
ff_h264_flush_change(h);
|
||||||
|
ff_h264_sei_uninit(&h->sei);
|
||||||
|
|
||||||
for (i = 0; i < H264_MAX_PICTURE_COUNT; i++)
|
for (i = 0; i < H264_MAX_PICTURE_COUNT; i++)
|
||||||
ff_h264_unref_picture(h, &h->DPB[i]);
|
ff_h264_unref_picture(h, &h->DPB[i]);
|
||||||
|
Reference in New Issue
Block a user