Browse Source

simplify: group all the AUDIO_NONSHORT parameters in the same place

Originally committed as revision 16602 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Aurelien Jacobs 16 years ago
parent
commit
49cdad8d78
2 changed files with 3 additions and 5 deletions
  1. +2
    -0
      libavcodec/mpegaudio.h
  2. +1
    -5
      libavcodec/mpegaudiodec.c

+ 2
- 0
libavcodec/mpegaudio.h View File

@@ -68,11 +68,13 @@ typedef int32_t OUT_INT;
#define OUT_MAX INT32_MAX
#define OUT_MIN INT32_MIN
#define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 31)
#define OUT_FMT SAMPLE_FMT_S32
#else
typedef int16_t OUT_INT;
#define OUT_MAX INT16_MAX
#define OUT_MIN INT16_MIN
#define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15)
#define OUT_FMT SAMPLE_FMT_S16
#endif

#if FRAC_BITS <= 15


+ 1
- 5
libavcodec/mpegaudiodec.c View File

@@ -316,11 +316,7 @@ static int decode_init(AVCodecContext * avctx)

s->avctx = avctx;

#if CONFIG_MPEGAUDIO_HP && CONFIG_AUDIO_NONSHORT
avctx->sample_fmt= SAMPLE_FMT_S32;
#else
avctx->sample_fmt= SAMPLE_FMT_S16;
#endif
avctx->sample_fmt= OUT_FMT;
s->error_recognition= avctx->error_recognition;

if(avctx->antialias_algo != FF_AA_FLOAT)


Loading…
Cancel
Save