Browse Source

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>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
c74cd99986
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/rv10.c

+ 4
- 0
libavcodec/rv10.c View File

@@ -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…
Cancel
Save