comparison rtp_h264.c @ 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 6d50c1518d8a
children 6da0564c9d02
comparison
equal deleted inserted replaced
2701:25028505671c 2702:6a7b82888880
163 AVPacket * pkt, 163 AVPacket * pkt,
164 uint32_t * timestamp, 164 uint32_t * timestamp,
165 const uint8_t * buf, 165 const uint8_t * buf,
166 int len) 166 int len)
167 { 167 {
168 #ifdef DEBUG
168 h264_rtp_extra_data *data = s->dynamic_protocol_context; 169 h264_rtp_extra_data *data = s->dynamic_protocol_context;
170 #endif
169 uint8_t nal = buf[0]; 171 uint8_t nal = buf[0];
170 uint8_t type = (nal & 0x1f); 172 uint8_t type = (nal & 0x1f);
171 int result= 0; 173 int result= 0;
172 uint8_t start_sequence[]= {0, 0, 1}; 174 uint8_t start_sequence[]= {0, 0, 1};
173 175