# HG changeset patch # User bellard # Date 1070981509 0 # Node ID 1c9e8e499c5660e971a129e4fc69983b75eb5fc8 # Parent a75cbb4588d16106bd44789d7f8d81b3327a4e14 fixed low delay decoding diff -r a75cbb4588d1 -r 1c9e8e499c56 mpeg12.c --- a/mpeg12.c Tue Dec 09 14:03:55 2003 +0000 +++ b/mpeg12.c Tue Dec 09 14:51:49 2003 +0000 @@ -2399,6 +2399,7 @@ s->frame_pred_frame_dct = 1; s->codec_id= s->avctx->codec_id= CODEC_ID_MPEG1VIDEO; avctx->sub_id = 1; /* indicates mpeg1 */ + if(s->flags & CODEC_FLAG_LOW_DELAY) s->low_delay=1; return 0; } @@ -2574,7 +2575,7 @@ 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 + if(s2->last_picture_ptr || s2->low_delay) //FIXME merge with the stuff in mpeg_decode_slice *data_size = sizeof(AVPicture); } }