changeset 2702:6a7b82888880 libavformat

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¡Ç
author diego
date Sun, 04 Nov 2007 12:46:16 +0000
parents 25028505671c
children 2c2da3011d6e
files rtp_h264.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rtp_h264.c	Sat Nov 03 22:42:20 2007 +0000
+++ b/rtp_h264.c	Sun Nov 04 12:46:16 2007 +0000
@@ -165,7 +165,9 @@
                               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;