diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-11 20:14:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-11 20:14:22 +0200 |
commit | d9a9518fbab6b70d02270d49f4c90740a310976b (patch) | |
tree | f28d06dd0e99c1ba03d3b283d157cd85c031712f | |
parent | 709b54eae9bf6115ce73a8bc7aa7debd3551aa79 (diff) | |
download | ffmpeg-d9a9518fbab6b70d02270d49f4c90740a310976b.tar.gz |
flvenc: use av_assert instead of assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/flvenc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index a562ea9eda..c636c66bad 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -27,9 +27,8 @@ #include "avc.h" #include "metadata.h" #include "libavutil/dict.h" +#include "libavutil/avassert.h" -#undef NDEBUG -#include <assert.h> static const AVCodecTag flv_video_codec_ids[] = { {CODEC_ID_FLV1, FLV_CODECID_H263 }, @@ -453,7 +452,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) case AVMEDIA_TYPE_AUDIO: flags = get_audio_flags(s, enc); - assert(size); + av_assert0(size); avio_w8(pb, FLV_TAG_TYPE_AUDIO); break; |