mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
a0212ecf84
commit
c74cd99986
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user