From b7a42d14bf0cdfb904448b55113e1f0aa4164ed7 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 4 Nov 2007 12:46:16 +0000 Subject: [PATCH] =?UTF-8?q?Enable=20debug=20variable=20only=20when=20debug?= =?UTF-8?q?=20code=20is=20enabled,=20fixes=20the=20warning:=20rtp=5Fh264.c?= =?UTF-8?q?:=20In=20function=20=E2=80=98h264=5Fhandle=5Fpacket=E2=80=99:?= =?UTF-8?q?=20rtp=5Fh264.c:168:=20warning:=20unused=20variable=20=E2=80=98?= =?UTF-8?q?data=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 10923 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtp_h264.c | 2 ++ 1 file changed, 2 insertions(+) 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;