diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-11-18 09:28:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-11-18 09:28:21 +0000 |
commit | 58bfafbed9d1c053948794d0033753b93fe194d5 (patch) | |
tree | 292c54d9d155bc726836254d16831277ae6f5cdd /libavcodec/mpeg12.c | |
parent | 8a555875be4cebfd8ec6ae342873c15ab1967dd3 (diff) | |
download | ffmpeg-58bfafbed9d1c053948794d0033753b93fe194d5.tar.gz |
hurry_up=5 support
Originally committed as revision 1219 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 5a87f42873..73c76e1c3b 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1402,6 +1402,10 @@ static int mpeg1_decode_picture(AVCodecContext *avctx, ref = get_bits(&s->gb, 10); /* temporal ref */ s->pict_type = get_bits(&s->gb, 3); dprintf("pict_type=%d number=%d\n", s->pict_type, s->picture_number); + + avctx->pict_type= s->pict_type; + avctx->key_frame= s->pict_type == I_TYPE; + skip_bits(&s->gb, 16); if (s->pict_type == P_TYPE || s->pict_type == B_TYPE) { s->full_pel[0] = get_bits1(&s->gb); @@ -1911,7 +1915,7 @@ static int mpeg_decode_frame(AVCodecContext *avctx, break; default: if (start_code >= SLICE_MIN_START_CODE && - start_code <= SLICE_MAX_START_CODE) { + start_code <= SLICE_MAX_START_CODE && s2->hurry_up<5) { ret = mpeg_decode_slice(avctx, picture, start_code, s->buffer, input_size); if (ret == DECODE_SLICE_EOP) { |