]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/wma.c
avcodec/wma: remove unneeded #includes, there are no assert() only av_assert*
[ffmpeg] / libavcodec / wma.c
index 841a2be08739b5bc9318b4d154e0eae6e4ed23da..3bc60993899a185bb4f44702ea01842ff7eb6de3 100644 (file)
@@ -28,9 +28,6 @@
 #include "wma_freqs.h"
 #include "wmadata.h"
 
-#undef NDEBUG
-#include <assert.h>
-
 /* XXX: use same run/length optimization as mpeg decoders */
 // FIXME maybe split decode / encode or pass flag
 static av_cold int init_coef_vlc(VLC *vlc, uint16_t **prun_table,
@@ -487,7 +484,11 @@ int ff_wma_run_level_decode(AVCodecContext *avctx, GetBitContext *gb,
     }
     /** NOTE: EOB can be omitted */
     if (offset > num_coefs) {
-        av_log(avctx, AV_LOG_ERROR, "overflow in spectral RLE, ignoring\n");
+        av_log(avctx, AV_LOG_ERROR,
+               "overflow (%d > %d) in spectral RLE, ignoring\n",
+               offset,
+               num_coefs
+              );
         return -1;
     }