[FFmpeg-cvslog] r13149 - trunk/libavformat/rtp_h264.c

Måns Rullgård mans
Tue May 13 19:47:47 CEST 2008


mmu_man <subversion at mplayerhq.hu> writes:

> Author: mmu_man
> Date: Tue May 13 19:43:18 2008
> New Revision: 13149
>
> Log:
> Fix non-debug build.
>
> Modified:
>    trunk/libavformat/rtp_h264.c
>
> Modified: trunk/libavformat/rtp_h264.c
> ==============================================================================
> --- trunk/libavformat/rtp_h264.c	(original)
> +++ trunk/libavformat/rtp_h264.c	Tue May 13 19:43:18 2008
> @@ -173,8 +173,10 @@ static int h264_handle_packet(RTPDemuxCo
>      int result= 0;
>      uint8_t start_sequence[]= {0, 0, 1};
>
> +#ifdef DEBUG
>      assert(data);
>      assert(data->cookie == MAGIC_COOKIE);
> +#endif
>      assert(buf);

Please explain why this makes any difference whatsoever?  If DEBUG is
not defined, NDEBUG is defined by internal.h, so assert() should be a
no-op.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-cvslog mailing list