Mercurial > libavcodec.hg
comparison mpegaudioenc.c @ 10328:d4c97368f3e4 libavcodec
Use floating point mathematics when encoding mpeg audio.
Fixes issue 975: high db peak levels when encoding mp2
Original patch by Lasse Reinhold, lassemikkelreinhold hotmail
author | cehoyos |
---|---|
date | Wed, 30 Sep 2009 15:13:09 +0000 |
parents | 7955db355703 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10327:bf04c3ecdfe5 | 10328:d4c97368f3e4 |
---|---|
57 int sblimit; /* number of used subbands */ | 57 int sblimit; /* number of used subbands */ |
58 const unsigned char *alloc_table; | 58 const unsigned char *alloc_table; |
59 } MpegAudioContext; | 59 } MpegAudioContext; |
60 | 60 |
61 /* define it to use floats in quantization (I don't like floats !) */ | 61 /* define it to use floats in quantization (I don't like floats !) */ |
62 //#define USE_FLOATS | 62 #define USE_FLOATS |
63 | 63 |
64 #include "mpegaudiodata.h" | 64 #include "mpegaudiodata.h" |
65 #include "mpegaudiotab.h" | 65 #include "mpegaudiotab.h" |
66 | 66 |
67 static av_cold int MPA_encode_init(AVCodecContext *avctx) | 67 static av_cold int MPA_encode_init(AVCodecContext *avctx) |