Commit 019f99ca authored by michaelni's avatar michaelni

hurry_up fix?


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2306 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent efaa8418
......@@ -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);
}
......
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