changeset 731:f011a0df269f libavcodec

set low_delay on encoding if no b frames
author michaelni
date Sun, 06 Oct 2002 17:46:22 +0000
parents b24ea84b23e2
children bf4304c46cda
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Sun Oct 06 15:27:01 2002 +0000
+++ b/mpegvideo.c	Sun Oct 06 17:46:22 2002 +0000
@@ -596,7 +596,7 @@
         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: