From 96d1b7ffcab46dc40bd41afd7833a3380c53709c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 19 Jan 2013 06:18:24 +0100 Subject: [PATCH] h264: unmark frames at the end Fixes assertion failure Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index f43e99efc5..d2941ca695 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -4327,6 +4327,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, h->delayed_pic[i] = h->delayed_pic[i + 1]; if (out) { + out->f.reference &= ~DELAYED_PIC_REF; *got_frame = 1; *pict = out->f; }