Commit 31c3861d authored by michael's avatar michael

skip b frames before first i frame


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2829 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 66658b2e
......@@ -360,6 +360,11 @@ static int rv20_decode_picture_header(MpegEncContext *s)
return -1;
}
if(s->last_picture_ptr==NULL && s->pict_type==B_TYPE){
av_log(s->avctx, AV_LOG_ERROR, "early B pix\n");
return -1;
}
if (get_bits(&s->gb, 1)){
av_log(s->avctx, AV_LOG_ERROR, "unknown bit set\n");
return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment