diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-13 17:59:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-13 18:00:00 +0100 |
commit | c74cd99986fc8c148a10ebcf13ab2b8d8c6de561 (patch) | |
tree | 3bf6500c19a258e94032e3d680b41ae3e017a1e9 /libavcodec/rv10.c | |
parent | a0212ecf8452e9861286639543a772dc94f3ad07 (diff) | |
download | ffmpeg-c74cd99986fc8c148a10ebcf13ab2b8d8c6de561.tar.gz |
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.c | 4 |
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; |