]> git.sesse.net Git - ffmpeg/commitdiff
lavf/mp3dec: avoid printing useless message in default log level
authorMoritz Barsnick <barsnick@gmx.net>
Tue, 8 Mar 2016 15:54:42 +0000 (16:54 +0100)
committerwm4 <nfxjfg@googlemail.com>
Tue, 8 Mar 2016 16:02:32 +0000 (17:02 +0100)
"Skipping 0 bytes of junk" is useless to the user, and essentially
indicates a NOP. At 0 bytes, this message is now pushed back to
the verbose log level.

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
libavformat/mp3dec.c

index adc3d2a297899b2de27692e53f43116bfbe0e724..672d643cec1fbd3b2dff25c6a0368fb768920222 100644 (file)
@@ -388,7 +388,7 @@ static int mp3_read_header(AVFormatContext *s)
             if (ret >= 0 &&
                 (header & SAME_HEADER_MASK) == (header2 & SAME_HEADER_MASK))
             {
-                av_log(s, AV_LOG_INFO, "Skipping %d bytes of junk at %"PRId64".\n", i, off);
+                av_log(s, i > 0 ? AV_LOG_INFO : AV_LOG_VERBOSE, "Skipping %d bytes of junk at %"PRId64".\n", i, off);
                 ret = avio_seek(s->pb, off + i, SEEK_SET);
                 if (ret < 0)
                     return ret;