[FFmpeg-devel] [PATCH] adpcm: Remove assert that no longer is valid

Martin Storsjo martin
Sun Nov 14 01:13:44 CET 2010


Since the nodes are stored in a heap, they are not iterated in a strictly
increasing order, and thus, the assertion no longer is valid.
---
 libavcodec/adpcm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 60adebe..f56a963 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -380,7 +380,6 @@ static void adpcm_compress_trellis(AVCodecContext *avctx, const short *samples,
                      * sample, but the effects of that are negligible. */\
                     for(k=0; k<frontier && nodes_next[k]; k++) {\
                         if(dec_sample == nodes_next[k]->sample1) {\
-                            assert(ssd >= nodes_next[k]->ssd);\
                             goto next_##NAME;\
                         }\
                     }\
-- 
1.7.3.1




More information about the ffmpeg-devel mailing list