1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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>
This commit is contained in:
Moritz Barsnick
2016-03-08 16:54:42 +01:00
committed by wm4
parent 72babb8566
commit 8a90e0fd21

View File

@@ -388,7 +388,7 @@ static int mp3_read_header(AVFormatContext *s)
if (ret >= 0 && if (ret >= 0 &&
(header & SAME_HEADER_MASK) == (header2 & SAME_HEADER_MASK)) (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); ret = avio_seek(s->pb, off + i, SEEK_SET);
if (ret < 0) if (ret < 0)
return ret; return ret;