mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
lavc/mpegvideo_enc: improve log message in case of too large GOP
Change log level from ERROR to WARNING and provide more specific information in the message itself.
This commit is contained in:
parent
56af084cb5
commit
9f7144b44c
@ -339,8 +339,9 @@ av_cold int MPV_encode_init(AVCodecContext *avctx)
|
|||||||
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) {
|
avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
|
||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_WARNING,
|
||||||
"Warning keyframe interval too large! reducing it ...\n");
|
"keyframe interval too large!, reducing it from %d to %d\n",
|
||||||
|
avctx->gop_size, 600);
|
||||||
avctx->gop_size = 600;
|
avctx->gop_size = 600;
|
||||||
}
|
}
|
||||||
s->gop_size = avctx->gop_size;
|
s->gop_size = avctx->gop_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user