[FFmpeg-cvslog] avformat/id3v2: silence a warning when CONFIG_ZLIB is unset.

Benoit Fouet git at videolan.org
Thu Oct 16 16:33:24 CEST 2014


ffmpeg | branch: master | Benoit Fouet <benoit.fouet at free.fr> | Thu Oct 16 11:44:46 2014 +0200| [8bcf425d06a278ee7870082777a8e99229c53eed] | committer: Michael Niedermayer

avformat/id3v2: silence a warning when CONFIG_ZLIB is unset.

dlen is only read when CONFIG_ZLIB is set, so mark it as possibly
unused.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 5469e0a..44df4ff 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -726,7 +726,7 @@ static void id3v2_parse(AVIOContext *pb, AVDictionary **metadata,
         int tunsync         = 0;
         int tcomp           = 0;
         int tencr           = 0;
-        unsigned long dlen;
+        unsigned long av_unused dlen;
 
         if (isv34) {
             if (avio_read(pb, tag, 4) < 4)



More information about the ffmpeg-cvslog mailing list