diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-12-09 14:51:49 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-12-09 14:51:49 +0000 |
commit | 248a189a7d4dbb25a69a2516674986386b0b2b54 (patch) | |
tree | 13959fffc55fa88c2ed472fd311d6a2abf23c622 /libavcodec/mpeg12.c | |
parent | feca25cc8bd7a80207dea5e81280f77695344a12 (diff) | |
download | ffmpeg-248a189a7d4dbb25a69a2516674986386b0b2b54.tar.gz |
fixed low delay decoding
Originally committed as revision 2583 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 2e2a972b57..2be9e8a380 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2399,6 +2399,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx, 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 @@ static int mpeg_decode_frame(AVCodecContext *avctx, 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); } } |