summaryrefslogtreecommitdiff
path: root/libavcodec/cavsdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-23 22:18:16 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-23 23:54:13 +0200
commit5a9fa84585e93a70bf586cf959065f61fa949949 (patch)
tree5f034023930f823a56a66e2247ccdc48754b77c3 /libavcodec/cavsdec.c
parentbb1e0e80b02a49c96f5cd39ed0712b07d37f3fd7 (diff)
cavsdec: switch to av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cavsdec.c')
-rw-r--r--libavcodec/cavsdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c
index a464512773..a0b257466b 100644
--- a/libavcodec/cavsdec.c
+++ b/libavcodec/cavsdec.c
@@ -25,6 +25,7 @@
* @author Stefan Gehrer <stefan.gehrer@gmx.de>
*/
+#include "libavutil/avassert.h"
#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
@@ -372,7 +373,7 @@ static void decode_mb_b(AVSContext *h, enum cavs_mb mb_type) {
}
break;
default:
- assert((mb_type > B_SYM_16X16) && (mb_type < B_8X8));
+ av_assert2((mb_type > B_SYM_16X16) && (mb_type < B_8X8));
flags = ff_cavs_partition_flags[mb_type];
if(mb_type & 1) { /* 16x8 macroblock types */
if(flags & FWD0)