diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-12-07 00:57:26 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-12-07 00:57:26 +0000 |
commit | ee1a8f62901b7043fb39c25d228e47521ee5c3d6 (patch) | |
tree | 6a0bd30609a1ce8e1803a0d853e291408a8fa7fa /libavcodec/mlpdec.c | |
parent | dc50773dc5d2552ccd42df39fcf7afde41f8b648 (diff) | |
download | ffmpeg-ee1a8f62901b7043fb39c25d228e47521ee5c3d6.tar.gz |
mlp: support bit-depths greater than 16 by default.
Originally committed as revision 16026 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index 72f213cd13..8ce09831ad 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -222,7 +222,7 @@ static av_cold int mlp_decode_init(AVCodecContext *avctx) m->avctx = avctx; for (substr = 0; substr < MAX_SUBSTREAMS; substr++) m->substream[substr].lossless_check_data = 0xffffffff; - avctx->sample_fmt = SAMPLE_FMT_S16; + return 0; } @@ -296,12 +296,12 @@ static int read_major_sync(MLPDecodeContext *m, GetBitContext *gb) m->avctx->sample_rate = mh.group1_samplerate; m->avctx->frame_size = mh.access_unit_size; -#ifdef CONFIG_AUDIO_NONSHORT m->avctx->bits_per_raw_sample = mh.group1_bits; if (mh.group1_bits > 16) { m->avctx->sample_fmt = SAMPLE_FMT_S32; } -#endif + else + m->avctx->sample_fmt = SAMPLE_FMT_S16; m->params_valid = 1; for (substr = 0; substr < MAX_SUBSTREAMS; substr++) |