[FFmpeg-cvslog] amrnbdec: use av_assert
Michael Niedermayer
git at videolan.org
Sun Jun 10 23:45:56 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun 10 23:35:29 2012 +0200| [1248de53c1ba6c27fba32a481ec32572139890a8] | committer: Michael Niedermayer
amrnbdec: use av_assert
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1248de53c1ba6c27fba32a481ec32572139890a8
---
libavcodec/amrnbdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/amrnbdec.c b/libavcodec/amrnbdec.c
index c120a44..6b658c0 100644
--- a/libavcodec/amrnbdec.c
+++ b/libavcodec/amrnbdec.c
@@ -45,6 +45,7 @@
#include "avcodec.h"
#include "libavutil/common.h"
+#include "libavutil/avassert.h"
#include "celp_math.h"
#include "celp_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,
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) {
ff_decode_10_pulses_35bits(pulses, fixed_sparse, gray_decode, 5, 3);
More information about the ffmpeg-cvslog
mailing list