aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-12 12:33:19 +0100
committerAnton Khirnov <anton@khirnov.net>2013-03-21 10:21:11 +0100
commitfcf75022d72e2bcda3918e3cef8fc10457cd357a (patch)
tree0f21a9e7a69eabb38fe0dbd61ac5e5949323072b
parent23e85be58fc64b2e804e68b0034a08a6d257e523 (diff)
downloadffmpeg-fcf75022d72e2bcda3918e3cef8fc10457cd357a.tar.gz
h264: remove redundant freeing of DPB in h264_decode_end
free_tables() frees it already.
-rw-r--r--libavcodec/h264.c7
1 files changed, 0 insertions, 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;