summaryrefslogtreecommitdiff
path: root/libavformat/mp3dec.c
diff options
context:
space:
mode:
authorMoritz Barsnick <barsnick@gmx.net>2016-03-08 16:54:42 +0100
committerwm4 <nfxjfg@googlemail.com>2016-03-08 17:02:32 +0100
commit8a90e0fd21f77e81abc1b5abab0eda05cc89f59b (patch)
tree1da6394d0057dbe6024a19918bda3b9ec5d8396b /libavformat/mp3dec.c
parent72babb8566bdc6d50c25267448491ec02ea1bdcc (diff)
downloadffmpeg-8a90e0fd21f77e81abc1b5abab0eda05cc89f59b.tar.gz
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@gmx.net>
Diffstat (limited to 'libavformat/mp3dec.c')
-rw-r--r--libavformat/mp3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index adc3d2a297..672d643cec 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;