From c74cd99986fc8c148a10ebcf13ab2b8d8c6de561 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 13 Nov 2012 17:59:18 +0100 Subject: [PATCH] rv10: consider B frames in low delay streams invalid. Fix assertion failure Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer --- libavcodec/rv10.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c index 21dec46c55..a5181b38a6 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -332,6 +332,10 @@ static int rv20_decode_picture_header(RVDecContext *rv) return -1; } + if(s->low_delay && s->pict_type==AV_PICTURE_TYPE_B){ + av_log(s->avctx, AV_LOG_ERROR, "low delay B\n"); + return -1; + } if(s->last_picture_ptr==NULL && s->pict_type==AV_PICTURE_TYPE_B){ av_log(s->avctx, AV_LOG_ERROR, "early B pix\n"); return -1;