export low_delay for encoding too
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 29 May 2004 15:16:52 +0000 (15:16 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 29 May 2004 15:16:52 +0000 (15:16 +0000)
Originally committed as revision 3170 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index e9dfaf3..069194d 100644 (file)
@@ -1156,6 +1156,8 @@ int MPV_encode_init(AVCodecContext *avctx)
     default:
         return -1;
     }
+    
+    avctx->has_b_frames= !s->low_delay;
 
     s->encoding = 1;