summaryrefslogtreecommitdiff
path: root/libavformat/riff.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-14 23:52:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-14 23:52:56 +0200
commit01a14ce0424a45caa24d4a9103afe26c39a6fd35 (patch)
tree9f7c752112ffc2227ba5463b1f7baaa0c9c6dc70 /libavformat/riff.c
parent9d87c8e6f8edfb45d999b938855531386c490e96 (diff)
riff: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/riff.c')
-rw-r--r--libavformat/riff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 9859e5813e..b03257bc8e 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -25,6 +25,7 @@
#include "avio_internal.h"
#include "riff.h"
#include "libavcodec/bytestream.h"
+#include "libavutil/avassert.h"
/* Note: when encoding, the first matching tag is used, so order is
important if multiple tags possible for a given codec. */
@@ -706,7 +707,7 @@ void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssiz
void ff_get_guid(AVIOContext *s, ff_asf_guid *g)
{
- assert(sizeof(*g) == 16);
+ av_assert0(sizeof(*g) == 16); //compiler will optimize this out
if (avio_read(s, *g, sizeof(*g)) < (int)sizeof(*g))
memset(*g, 0, sizeof(*g));
}