[FFmpeg-cvslog] rtpdec_h264: Remove a useless ifdef

Martin Storsjö git at videolan.org
Sat May 5 20:36:37 CEST 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Fri May  4 23:53:10 2012 +0300| [44f99fe0f5e688833cb671efbaa0beb6b74c9389] | committer: Martin Storsjö

rtpdec_h264: Remove a useless ifdef

assert is a no-op if DEBUG isn't defined.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=44f99fe0f5e688833cb671efbaa0beb6b74c9389
---

 libavformat/rtpdec_h264.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index d98be07..399ca47 100644
--- a/libavformat/rtpdec_h264.c
+++ b/libavformat/rtpdec_h264.c
@@ -170,9 +170,7 @@ static int h264_handle_packet(AVFormatContext *ctx,
     nal  = buf[0];
     type = nal & 0x1f;
 
-#ifdef DEBUG
     assert(data);
-#endif
     assert(buf);
 
     if (type >= 1 && type <= 23)



More information about the ffmpeg-cvslog mailing list