From 27b0e6ebfd47b0c11156c18b90fa8c571f0f60c3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 31 Mar 2015 10:10:42 +0200 Subject: h264: drop needs_realloc It is not needed anymore since switching to refcounted frames. --- libavcodec/h264_slice.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libavcodec/h264_slice.c') diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 16d5878fe1..d5c0a6fa29 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; } -- cgit v1.2.3