aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-01-16 18:53:59 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-01-17 12:03:30 +0100
commit9f7144b44cdecd27ca8c509e095d6a1ff51a7162 (patch)
tree478ef8bfd5468d44b8dd8bbc48b3d53c5a5c0731
parent56af084cb5478bc3c0eb2d47d47e82bbe40fbf2d (diff)
downloadffmpeg-9f7144b44cdecd27ca8c509e095d6a1ff51a7162.tar.gz
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.
-rw-r--r--libavcodec/mpegvideo_enc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index ab611baea1..fd31edc481 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -339,8 +339,9 @@ av_cold int MPV_encode_init(AVCodecContext *avctx)
s->height = avctx->height;
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_WARNING,
+ "keyframe interval too large!, reducing it from %d to %d\n",
+ avctx->gop_size, 600);
avctx->gop_size = 600;
}
s->gop_size = avctx->gop_size;