[FFmpeg-cvslog] matroskadec: Mark variable as av_unused.

Diego Biurrun git at videolan.org
Tue Feb 14 02:18:52 CET 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sun Feb 12 10:58:46 2012 +0100| [529506b5f618bde1e6a2255b5320501d8e824fc7] | committer: Diego Biurrun

matroskadec: Mark variable as av_unused.

This avoids unused variable warnings when zlib/bzlib are not available.

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

 libavformat/matroskadec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 8f34289..ca211a2 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -939,7 +939,7 @@ static int matroska_decode_buffer(uint8_t** buf, int* buf_size,
     uint8_t* data = *buf;
     int isize = *buf_size;
     uint8_t* pkt_data = NULL;
-    uint8_t* newpktdata;
+    uint8_t av_unused *newpktdata;
     int pkt_size = isize;
     int result = 0;
     int olen;



More information about the ffmpeg-cvslog mailing list