diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-11-02 18:47:51 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-11-02 18:47:51 +0000 |
commit | 9f9c322930d4b6758c5f24426405d5017d9bd168 (patch) | |
tree | 99e208a9815b49c0f85612a487c12316f2f6f5d6 | |
parent | 326d40af06bab832aea01ed2e12e8a869939eec8 (diff) | |
download | ffmpeg-9f9c322930d4b6758c5f24426405d5017d9bd168.tar.gz |
support forcing low_delay during decoding
Originally committed as revision 1150 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/avcodec.h | 1 | ||||
-rw-r--r-- | libavcodec/h263dec.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index db1d9b915f..4493407b76 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -132,6 +132,7 @@ static const int Motion_Est_QTab[] = { ME_ZERO, ME_PHODS, ME_LOG, allows the last part of a frame to be decoded earlier */ #define CODEC_FLAG_NORMALIZE_AQP 0x00020000 /* normalize adaptive quantization */ #define CODEC_FLAG_INTERLACED_DCT 0x00040000 /* use interlaced dct */ +#define CODEC_FLAG_LOW_DELAY 0x00080000 /* force low delay / will fail on b frames */ /* codec capabilities */ diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 676df6e314..490a5d7638 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -351,6 +351,9 @@ retry: } ret = ff_mpeg4_decode_picture_header(s, &s->gb); + if(s->flags& CODEC_FLAG_LOW_DELAY) + s->low_delay=1; + s->has_b_frames= !s->low_delay; } else if (s->h263_intel) { ret = intel_h263_decode_picture_header(s); |