mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
hurry_up fix?
Originally committed as revision 2306 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8b76418a14
commit
80de6a80a9
@ -2453,10 +2453,12 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
|
||||
/* find start next code */
|
||||
start_code = find_start_code(&buf_ptr, buf_end);
|
||||
if (start_code < 0){
|
||||
if(s2->pict_type != B_TYPE || avctx->hurry_up==0){
|
||||
if (slice_end(avctx, picture)) {
|
||||
if(s2->last_picture_ptr) //FIXME merge with the stuff in mpeg_decode_slice
|
||||
*data_size = sizeof(AVPicture);
|
||||
}
|
||||
}
|
||||
return FFMAX(0, buf_ptr - buf - s2->parse_context.last_index);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user