mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-17 06:11:17 +08:00
Merge commit '0eeeb9647e9c92c9edfd0b18c7cb5da7ac666f85'
* commit '0eeeb9647e9c92c9edfd0b18c7cb5da7ac666f85': mpegaudiodec: Consistently handle fixed/float templating Conflicts: libavcodec/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -19,8 +19,24 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "libavutil/samplefmt.h"
|
||||
|
||||
#define CONFIG_FLOAT 1
|
||||
#include "mpegaudiodec.c"
|
||||
|
||||
#include "mpegaudio.h"
|
||||
|
||||
#define SHR(a,b) ((a)*(1.0f/(1<<(b))))
|
||||
#define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5))
|
||||
#define FIXR(x) ((float)(x))
|
||||
#define FIXHR(x) ((float)(x))
|
||||
#define MULH3(x, y, s) ((s)*(y)*(x))
|
||||
#define MULLx(x, y, s) ((y)*(x))
|
||||
#define RENAME(a) a ## _float
|
||||
#define OUT_FMT AV_SAMPLE_FMT_FLT
|
||||
#define OUT_FMT_P AV_SAMPLE_FMT_FLTP
|
||||
|
||||
#include "mpegaudiodec_template.c"
|
||||
|
||||
#if CONFIG_MP1FLOAT_DECODER
|
||||
AVCodec ff_mp1float_decoder = {
|
||||
|
Reference in New Issue
Block a user