diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-03-31 10:10:42 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-04-29 05:52:57 +0200 |
commit | 27b0e6ebfd47b0c11156c18b90fa8c571f0f60c3 (patch) | |
tree | d09e19a8bfe6562cc303834999cdad0507066ed4 /libavcodec/h264_slice.c | |
parent | 0ac8ff618c5e6d878c547a8877e714ed728950ce (diff) | |
download | ffmpeg-streaming-27b0e6ebfd47b0c11156c18b90fa8c571f0f60c3.zip ffmpeg-streaming-27b0e6ebfd47b0c11156c18b90fa8c571f0f60c3.tar.gz |
h264: drop needs_realloc
It is not needed anymore since switching to refcounted frames.
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r-- | libavcodec/h264_slice.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 16d5878..d5c0a6f 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -273,8 +273,6 @@ static inline int pic_is_unused(H264Context *h, H264Picture *pic) { if (!pic->f.buf[0]) return 1; - if (pic->needs_realloc && !(pic->reference & DELAYED_PIC_REF)) - return 1; return 0; } @@ -289,11 +287,6 @@ static int find_unused_picture(H264Context *h) if (i == H264_MAX_PICTURE_COUNT) return AVERROR_INVALIDDATA; - if (h->DPB[i].needs_realloc) { - h->DPB[i].needs_realloc = 0; - ff_h264_unref_picture(h, &h->DPB[i]); - } - return i; } |