aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-11-04 12:46:16 +0000
committerDiego Biurrun <diego@biurrun.de>2007-11-04 12:46:16 +0000
commitb7a42d14bf0cdfb904448b55113e1f0aa4164ed7 (patch)
tree164381a4218d5a0f9da4e9657f60eb75e0e501c3
parenta680708d2d0e40c0061001dfa9b550dac0a9d329 (diff)
downloadffmpeg-b7a42d14bf0cdfb904448b55113e1f0aa4164ed7.tar.gz
Enable debug variable only when debug code is enabled, fixes the warning:
rtp_h264.c: In function ‘h264_handle_packet’: rtp_h264.c:168: warning: unused variable ‘data’ Originally committed as revision 10923 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rtp_h264.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtp_h264.c b/libavformat/rtp_h264.c
index 9f2c2d5be3..28426b21cf 100644
--- a/libavformat/rtp_h264.c
+++ b/libavformat/rtp_h264.c
@@ -165,7 +165,9 @@ static int h264_handle_packet(RTPDemuxContext * s,
const uint8_t * buf,
int len)
{
+#ifdef DEBUG
h264_rtp_extra_data *data = s->dynamic_protocol_context;
+#endif
uint8_t nal = buf[0];
uint8_t type = (nal & 0x1f);
int result= 0;