diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-18 21:44:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-18 21:44:22 +0200 |
commit | da42f5698563cb22e927b499acae9513a38bdca2 (patch) | |
tree | 48160b2469ec54b34c91562772e55ecd8d66cc5a /libavcodec | |
parent | b90f83e90507a990dc06ca201653e75024383093 (diff) | |
download | ffmpeg-da42f5698563cb22e927b499acae9513a38bdca2.tar.gz |
asv1: switch to av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/asv1.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c index 571af56a69..5c36459f18 100644 --- a/libavcodec/asv1.c +++ b/libavcodec/asv1.c @@ -31,9 +31,6 @@ #include "dsputil.h" #include "mpeg12data.h" -//#undef NDEBUG -//#include <assert.h> - #define VLC_BITS 6 #define ASV2_LEVEL_VLC_BITS 10 @@ -294,7 +291,7 @@ static inline void asv2_encode_block(ASV1Context *a, DCTELEM block[64]){ if( (block[index + 1] = (block[index + 1]*a->q_intra_matrix[index + 1] + (1<<15))>>16) ) ccp |= 2; if( (block[index + 9] = (block[index + 9]*a->q_intra_matrix[index + 9] + (1<<15))>>16) ) ccp |= 1; - assert(i || ccp<8); + av_assert2(i || ccp<8); if(i) put_bits(&a->pb, ac_ccp_tab[ccp][1], ac_ccp_tab[ccp][0]); else put_bits(&a->pb, dc_ccp_tab[ccp][1], dc_ccp_tab[ccp][0]); |