diff options
author | Michael Niedermayer | 2012-10-13 02:48:07 +0200 |
---|---|---|
committer | Michael Niedermayer | 2012-10-13 03:32:37 +0200 |
commit | f657d495b04db3b5af301d989c5ebd2eeb3ad13d (patch) | |
tree | f30cf2a0ba7b9d2c7ee43f671685c72ae784ed2a /libavformat/rtpdec_qdm2.c | |
parent | e47024d72f326f7a76c9df90da861663fc5d5fc2 (diff) |
rtpdec_qdm2: change one assert to av_assert0
Failure of this assert could lead to hard to debug behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_qdm2.c')
-rw-r--r-- | libavformat/rtpdec_qdm2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtpdec_qdm2.c b/libavformat/rtpdec_qdm2.c index f203fcfb74..3a8ffd5f99 100644 --- a/libavformat/rtpdec_qdm2.c +++ b/libavformat/rtpdec_qdm2.c @@ -26,6 +26,7 @@ */ #include <string.h> +#include "libavutil/avassert.h" #include "libavutil/intreadwrite.h" #include "libavcodec/avcodec.h" #include "rtp.h" @@ -193,7 +194,7 @@ static int qdm2_restore_block(PayloadContext *qdm, AVStream *st, AVPacket *pkt) for (n = 0; n < 0x80; n++) if (qdm->len[n] > 0) break; - assert(n < 0x80); + av_assert0(n < 0x80); if ((res = av_new_packet(pkt, qdm->block_size)) < 0) return res; |