[FFmpeg-devel] [PATCH]lavf/mp3dec: Silence a warning if it makes no sense
Carl Eugen Hoyos
cehoyos at ag.or.at
Wed Sep 16 12:16:29 CEST 2015
Hi!
Attached patch silences the following warning:
Skipping 0 bytes of junk at 5772990.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index d3080d7..17440b5 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -377,6 +377,7 @@ static int mp3_read_header(AVFormatContext *s)
if (!(i&1023))
ffio_ensure_seekback(s->pb, i + 1024 + 4);
if (check(s->pb, off + i) >= 0) {
+ if (i > 0)
av_log(s, AV_LOG_INFO, "Skipping %d bytes of junk at %"PRId64".\n", i, off);
avio_seek(s->pb, off + i, SEEK_SET);
break;
More information about the ffmpeg-devel
mailing list