summaryrefslogtreecommitdiff
path: root/libavcodec/h264_slice.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r--libavcodec/h264_slice.c7
1 files changed, 0 insertions, 7 deletions
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;
}