Commit ac630efc authored by aurel's avatar aurel

simplify: group all the AUDIO_NONSHORT parameters in the same place

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16602 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 805b703f
...@@ -68,11 +68,13 @@ typedef int32_t OUT_INT; ...@@ -68,11 +68,13 @@ typedef int32_t OUT_INT;
#define OUT_MAX INT32_MAX #define OUT_MAX INT32_MAX
#define OUT_MIN INT32_MIN #define OUT_MIN INT32_MIN
#define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 31) #define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 31)
#define OUT_FMT SAMPLE_FMT_S32
#else #else
typedef int16_t OUT_INT; typedef int16_t OUT_INT;
#define OUT_MAX INT16_MAX #define OUT_MAX INT16_MAX
#define OUT_MIN INT16_MIN #define OUT_MIN INT16_MIN
#define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15) #define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15)
#define OUT_FMT SAMPLE_FMT_S16
#endif #endif
#if FRAC_BITS <= 15 #if FRAC_BITS <= 15
......
...@@ -316,11 +316,7 @@ static int decode_init(AVCodecContext * avctx) ...@@ -316,11 +316,7 @@ static int decode_init(AVCodecContext * avctx)
s->avctx = avctx; s->avctx = avctx;
#if CONFIG_MPEGAUDIO_HP && CONFIG_AUDIO_NONSHORT avctx->sample_fmt= OUT_FMT;
avctx->sample_fmt= SAMPLE_FMT_S32;
#else
avctx->sample_fmt= SAMPLE_FMT_S16;
#endif
s->error_recognition= avctx->error_recognition; s->error_recognition= avctx->error_recognition;
if(avctx->antialias_algo != FF_AA_FLOAT) if(avctx->antialias_algo != FF_AA_FLOAT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment