fix decoding of mpeg2-trunc.vob
Originally committed as revision 5091 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7581c5f50c
commit
2669777981
@ -3114,7 +3114,7 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
|
|||||||
/* skip b frames if we dont have reference frames */
|
/* skip b frames if we dont have reference frames */
|
||||||
if(s2->pict_type==B_TYPE) break;
|
if(s2->pict_type==B_TYPE) break;
|
||||||
/* skip P frames if we dont have reference frame no valid header */
|
/* skip P frames if we dont have reference frame no valid header */
|
||||||
if(s2->pict_type==P_TYPE && !s2->first_slice) break;
|
// if(s2->pict_type==P_TYPE && s2->first_field && !s2->first_slice) break;
|
||||||
}
|
}
|
||||||
/* skip b frames if we are in a hurry */
|
/* skip b frames if we are in a hurry */
|
||||||
if(avctx->hurry_up && s2->pict_type==B_TYPE) break;
|
if(avctx->hurry_up && s2->pict_type==B_TYPE) break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user