[FFmpeg-cvslog] h264: remove redundant freeing of DPB in h264_decode_end
Anton Khirnov
git at videolan.org
Thu Mar 21 13:16:24 CET 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Mar 12 12:33:19 2013 +0100| [fcf75022d72e2bcda3918e3cef8fc10457cd357a] | committer: Anton Khirnov
h264: remove redundant freeing of DPB in h264_decode_end
free_tables() frees it already.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fcf75022d72e2bcda3918e3cef8fc10457cd357a
---
libavcodec/h264.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 8f9fe3f..04ceab5 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;
More information about the ffmpeg-cvslog
mailing list