summaryrefslogtreecommitdiff
path: root/libavcodec/rv10.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-13 17:59:18 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-13 18:00:00 +0100
commitc74cd99986fc8c148a10ebcf13ab2b8d8c6de561 (patch)
tree3bf6500c19a258e94032e3d680b41ae3e017a1e9 /libavcodec/rv10.c
parenta0212ecf8452e9861286639543a772dc94f3ad07 (diff)
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 <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rv10.c')
-rw-r--r--libavcodec/rv10.c4
1 files changed, 4 insertions, 0 deletions
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;