summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-10-06 17:46:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-10-06 17:46:22 +0000
commit0298af4887e4ffa70f1f2ff4dd2dbe819cdace97 (patch)
treedc252e6f5c5ba180081b7d3a84280b4701c1f82c /libavcodec/mpegvideo.c
parent676e200cfff6f94e8dae29b2410ddc894578852a (diff)
set low_delay on encoding if no b frames
Originally committed as revision 1007 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 5785e85d25..e5d6adcd6c 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -596,7 +596,7 @@ int MPV_encode_init(AVCodecContext *avctx)
s->h263_pred = 1;
s->unrestricted_mv = 1;
s->has_b_frames= s->max_b_frames ? 1 : 0;
- s->low_delay=0;
+ s->low_delay= !s->has_b_frames;
avctx->delay= s->low_delay ? 0 : (s->max_b_frames + 1);
break;
case CODEC_ID_MSMPEG4V1: