1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

cavsdec: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2012-07-23 22:18:16 +02:00
parent bb1e0e80b0
commit 5a9fa84585

View File

@@ -25,6 +25,7 @@
* @author Stefan Gehrer <stefan.gehrer@gmx.de> * @author Stefan Gehrer <stefan.gehrer@gmx.de>
*/ */
#include "libavutil/avassert.h"
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "get_bits.h"
#include "golomb.h" #include "golomb.h"
@@ -372,7 +373,7 @@ static void decode_mb_b(AVSContext *h, enum cavs_mb mb_type) {
} }
break; break;
default: 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]; flags = ff_cavs_partition_flags[mb_type];
if(mb_type & 1) { /* 16x8 macroblock types */ if(mb_type & 1) { /* 16x8 macroblock types */
if(flags & FWD0) if(flags & FWD0)