mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
amrnbdec: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4e3a5bc1f6
commit
1248de53c1
@ -45,6 +45,7 @@
|
|||||||
|
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "celp_math.h"
|
#include "celp_math.h"
|
||||||
#include "celp_filters.h"
|
#include "celp_filters.h"
|
||||||
#include "acelp_filters.h"
|
#include "acelp_filters.h"
|
||||||
@ -478,7 +479,7 @@ static void decode_8_pulses_31bits(const int16_t *fixed_index,
|
|||||||
static void decode_fixed_sparse(AMRFixed *fixed_sparse, const uint16_t *pulses,
|
static void decode_fixed_sparse(AMRFixed *fixed_sparse, const uint16_t *pulses,
|
||||||
const enum Mode mode, const int subframe)
|
const enum Mode mode, const int subframe)
|
||||||
{
|
{
|
||||||
assert(MODE_4k75 <= mode && mode <= MODE_12k2);
|
av_assert1(MODE_4k75 <= mode && mode <= MODE_12k2);
|
||||||
|
|
||||||
if (mode == MODE_12k2) {
|
if (mode == MODE_12k2) {
|
||||||
ff_decode_10_pulses_35bits(pulses, fixed_sparse, gray_decode, 5, 3);
|
ff_decode_10_pulses_35bits(pulses, fixed_sparse, gray_decode, 5, 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user