From fcf75022d72e2bcda3918e3cef8fc10457cd357a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 12 Mar 2013 12:33:19 +0100 Subject: [PATCH] h264: remove redundant freeing of DPB in h264_decode_end free_tables() frees it already. --- libavcodec/h264.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 8f9fe3f1a8..04ceab5228 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -4706,13 +4706,6 @@ static av_cold int h264_decode_end(AVCodecContext *avctx) ff_h264_free_context(h); - if (h->DPB) { - for (i = 0; i < MAX_PICTURE_COUNT; i++) { - unref_picture(h, &h->DPB[i]); - } - } - av_freep(&h->DPB); - unref_picture(h, &h->cur_pic); return 0;