allow insane gop sizes if the user doesnt care about playable streams (doesnt want...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 9 May 2006 08:40:38 +0000 (08:40 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 9 May 2006 08:40:38 +0000 (08:40 +0000)
Originally committed as revision 5351 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index f2a5707..9cd92d5 100644 (file)
@@ -947,7 +947,7 @@ int MPV_encode_init(AVCodecContext *avctx)
     s->bit_rate = avctx->bit_rate;
     s->width = avctx->width;
     s->height = avctx->height;
-    if(avctx->gop_size > 600){
+    if(avctx->gop_size > 600 && avctx->strict_std_compliance>FF_COMPLIANCE_EXPERIMENTAL){
         av_log(avctx, AV_LOG_ERROR, "Warning keyframe interval too large! reducing it ...\n");
         avctx->gop_size=600;
     }