X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264dec.c;h=f29c3f90488d767b04eecf52a3daa42ff1484579;hb=157dc1495135ff8b79ef4ca23dac8c9de008e34b;hp=49ebeca6d8eaf5a3ccd6d91c338d99386b5236eb;hpb=d2ec2e27f81989ec11d6d43529b792610776c85c;p=ffmpeg diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 49ebeca6d8e..f29c3f90488 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -499,7 +499,6 @@ void ff_h264_flush_change(H264Context *h) ff_h264_unref_picture(h, &h->last_pic_for_ec); h->first_field = 0; - ff_h264_sei_uninit(&h->sei); h->recovery_frame = -1; h->frame_recovered = 0; h->current_slice = 0; @@ -515,6 +514,7 @@ static void flush_dpb(AVCodecContext *avctx) memset(h->delayed_pic, 0, sizeof(h->delayed_pic)); ff_h264_flush_change(h); + ff_h264_sei_uninit(&h->sei); for (i = 0; i < H264_MAX_PICTURE_COUNT; i++) ff_h264_unref_picture(h, &h->DPB[i]);