[FFmpeg-devel] [PATCH 1/2] mpegaudiodec.c: fix compilation with CONFIG_FLOAT and --disable-mpegaudio-hp

Konstantin Pavlov thresh
Thu May 13 12:02:31 CEST 2010


From: Konstantin Pavlov <thresh at altlinux.org>

---
 libavcodec/mpegaudiodec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index b12939f..89f79f3 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -847,8 +847,7 @@ void RENAME(ff_mpa_synth_filter)(MPA_INT *synth_buf_ptr, int *synth_buf_offset,
     offset = *synth_buf_offset;
     synth_buf = synth_buf_ptr + offset;
 
-#if FRAC_BITS <= 15
-    assert(!CONFIG_FLOAT);
+#if FRAC_BITS <= 15 && !CONFIG_FLOAT
     dct32(tmp, sb_samples);
     for(j=0;j<32;j++) {
         /* NOTE: can cause a loss in precision if very high amplitude
-- 
1.7.0.4




More information about the ffmpeg-devel mailing list