summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-05-09 08:40:38 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-05-09 08:40:38 +0000
commitd4277a7d5189bbedfc70968ce90b60ea60f23835 (patch)
tree8a6ea60eb24cfef96a0bfd4d4473f742118fb64c
parent3b29cb6b5914a4830e74237480b8b8f678d91de0 (diff)
allow insane gop sizes if the user doesnt care about playable streams (doesnt want compliance to any standard)
Originally committed as revision 5351 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index f2a57078ad..9cd92d5a6f 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -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;
}