diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-07 21:09:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-07 21:09:06 +0200 |
commit | 610a52647ba8c3bd720e08f01fde76324a6b4b9c (patch) | |
tree | 6b214c74d3b3d2cf011f5858b5432ecea12ec063 | |
parent | 4e3fc468284c6401f2ce1d074833da580d7b5a38 (diff) | |
download | ffmpeg-610a52647ba8c3bd720e08f01fde76324a6b4b9c.tar.gz |
xmv: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/xmv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/xmv.c b/libavformat/xmv.c index 5fcc540169..cb61e153b1 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); |