forked from FFmpeg/FFmpeg
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
This commit is contained in:
parent
3b29cb6b59
commit
d4277a7d51
1 changed files with 1 additions and 1 deletions
|
@ -947,7 +947,7 @@ int MPV_encode_init(AVCodecContext *avctx)
|
||||||
s->bit_rate = avctx->bit_rate;
|
s->bit_rate = avctx->bit_rate;
|
||||||
s->width = avctx->width;
|
s->width = avctx->width;
|
||||||
s->height = avctx->height;
|
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");
|
av_log(avctx, AV_LOG_ERROR, "Warning keyframe interval too large! reducing it ...\n");
|
||||||
avctx->gop_size=600;
|
avctx->gop_size=600;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue