Enable debug variable only when debug code is enabled, fixes the warning:
authorDiego Biurrun <diego@biurrun.de>
Sun, 4 Nov 2007 12:46:16 +0000 (12:46 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 4 Nov 2007 12:46:16 +0000 (12:46 +0000)
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

libavformat/rtp_h264.c

index 9f2c2d5..28426b2 100644 (file)
@@ -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;