vorbisdec: switch to av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e3c2d83183
commit
5f298c6791
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#define BITSTREAM_READER_LE
|
#define BITSTREAM_READER_LE
|
||||||
#include "libavutil/float_dsp.h"
|
#include "libavutil/float_dsp.h"
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "get_bits.h"
|
#include "get_bits.h"
|
||||||
#include "dsputil.h"
|
#include "dsputil.h"
|
||||||
@ -45,9 +46,6 @@
|
|||||||
#define V_MAX_VLCS (1 << 16)
|
#define V_MAX_VLCS (1 << 16)
|
||||||
#define V_MAX_PARTITIONS (1 << 20)
|
#define V_MAX_PARTITIONS (1 << 20)
|
||||||
|
|
||||||
#undef NDEBUG
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t dimensions;
|
uint8_t dimensions;
|
||||||
uint8_t lookup_type;
|
uint8_t lookup_type;
|
||||||
@ -1334,7 +1332,7 @@ static av_always_inline int vorbis_residue_decode_internal(vorbis_context *vc,
|
|||||||
|
|
||||||
av_dlog(NULL, "Classword: %u\n", temp);
|
av_dlog(NULL, "Classword: %u\n", temp);
|
||||||
|
|
||||||
assert(vr->classifications > 1 && temp <= 65536); //needed for inverse[]
|
av_assert0(vr->classifications > 1 && temp <= 65536); //needed for inverse[]
|
||||||
for (i = 0; i < c_p_c; ++i) {
|
for (i = 0; i < c_p_c; ++i) {
|
||||||
unsigned temp2;
|
unsigned temp2;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user