[FFmpeg-cvslog] rtpdec_xiph: switch to av_assert()

Michael Niedermayer git at videolan.org
Fri Aug 24 14:44:32 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Aug 24 05:39:30 2012 +0200| [6b72615c32d7f3bc53a6d6075042aee626d07412] | committer: Michael Niedermayer

rtpdec_xiph: switch to av_assert()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/rtpdec_xiph.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c
index 2457f66..097d1a3 100644
--- a/libavformat/rtpdec_xiph.c
+++ b/libavformat/rtpdec_xiph.c
@@ -27,12 +27,11 @@
  * @author Josh Allmann <joshua.allmann at gmail.com>
  */
 
+#include "libavutil/avassert.h"
 #include "libavutil/avstring.h"
 #include "libavutil/base64.h"
 #include "libavcodec/bytestream.h"
 
-#include <assert.h>
-
 #include "rtpdec.h"
 #include "rtpdec_formats.h"
 
@@ -183,7 +182,7 @@ static int xiph_handle_packet(AVFormatContext * ctx,
         data->timestamp = *timestamp;
 
     } else {
-        assert(fragmented < 4);
+        av_assert1(fragmented < 4);
         if (data->timestamp != *timestamp) {
             // skip if fragmented timestamp is incorrect;
             // a start packet has been lost somewhere



More information about the ffmpeg-cvslog mailing list