[FFmpeg-cvslog] xmv: use av_assert
Michael Niedermayer
git at videolan.org
Thu Jun 7 21:11:38 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jun 7 21:09:06 2012 +0200| [610a52647ba8c3bd720e08f01fde76324a6b4b9c] | committer: Michael Niedermayer
xmv: use av_assert
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=610a52647ba8c3bd720e08f01fde76324a6b4b9c
---
libavformat/xmv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index 5fcc540..cb61e15 100644
--- a/libavformat/xmv.c
+++ b/libavformat/xmv.c
@@ -32,6 +32,7 @@
#include "avformat.h"
#include "internal.h"
#include "riff.h"
+#include "libavutil/avassert.h"
/** The min size of an XMV header. */
#define XMV_MIN_HEADER_SIZE 36
@@ -354,7 +355,7 @@ static int xmv_process_packet_header(AVFormatContext *s)
if (xmv->video.stream_index >= 0) {
AVStream *vst = s->streams[xmv->video.stream_index];
- assert(xmv->video.stream_index < s->nb_streams);
+ av_assert0(xmv->video.stream_index < s->nb_streams);
if (vst->codec->extradata_size < 4) {
av_free(vst->codec->extradata);
More information about the ffmpeg-cvslog
mailing list