summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-01-14 21:41:05 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-01-14 21:41:05 +0000
commit49cdad8d78b0abdfba6dbaeb79a9c8f91dcf3ba4 (patch)
treed460c873f42c26e0ab49e0ab0dac240bdfc13317 /libavcodec/mpegaudiodec.c
parente29a95b1b86cfa0ca320267e66d8b49821fc11ad (diff)
simplify: group all the AUDIO_NONSHORT parameters in the same place
Originally committed as revision 16602 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r--libavcodec/mpegaudiodec.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 3ad2c667d2..58e4511283 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -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)