summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-03-31 10:10:42 +0200
committerAnton Khirnov <anton@khirnov.net>2015-04-29 05:52:57 +0200
commit27b0e6ebfd47b0c11156c18b90fa8c571f0f60c3 (patch)
treed09e19a8bfe6562cc303834999cdad0507066ed4 /libavcodec/h264.c
parent0ac8ff618c5e6d878c547a8877e714ed728950ce (diff)
h264: drop needs_realloc
It is not needed anymore since switching to refcounted frames.
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index ec8ac40913..266b3ec93a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -359,9 +359,6 @@ void ff_h264_free_tables(H264Context *h, int free_rbsp)
for (i = 0; i < H264_MAX_PICTURE_COUNT; i++)
ff_h264_unref_picture(h, &h->DPB[i]);
av_freep(&h->DPB);
- } else if (h->DPB) {
- for (i = 0; i < H264_MAX_PICTURE_COUNT; i++)
- h->DPB[i].needs_realloc = 1;
}
h->cur_pic_ptr = NULL;