[FFmpeg-cvslog] lavf/mp3dec: avoid printing useless message in default log level

Moritz Barsnick git at videolan.org
Tue Mar 8 17:03:09 CET 2016


ffmpeg | branch: master | Moritz Barsnick <barsnick at gmx.net> | Tue Mar  8 16:54:42 2016 +0100| [8a90e0fd21f77e81abc1b5abab0eda05cc89f59b] | committer: wm4

lavf/mp3dec: avoid printing useless message in default log level

"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 at gmx.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8a90e0fd21f77e81abc1b5abab0eda05cc89f59b
---

 libavformat/mp3dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index adc3d2a..672d643 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list