OSDN Git Service

mlp: Fix compilation under CONFIG_AUDIO_NONSHORT.
authorMathieu Velten <matmaul@gmail.com>
Sat, 6 Dec 2008 16:28:48 +0000 (16:28 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Sat, 6 Dec 2008 16:28:48 +0000 (16:28 +0000)
Patch by Mathieu Velten < matmaul at gmail dot com >

Originally committed as revision 16021 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mlp_parser.c
libavcodec/mlpdec.c

index 1914333..792f84e 100644 (file)
@@ -252,8 +252,8 @@ static int mlp_parse(AVCodecParserContext *s,
             goto lost_sync;
 
 #ifdef CONFIG_AUDIO_NONSHORT
-        avctx->bits_per_sample = mh.group1_bits;
-        if (avctx->bits_per_sample > 16)
+        avctx->bits_per_raw_sample = mh.group1_bits;
+        if (avctx->bits_per_raw_sample > 16)
             avctx->sample_fmt = SAMPLE_FMT_S32;
 #endif
         avctx->sample_rate = mh.group1_samplerate;
index 7272458..72f213c 100644 (file)
@@ -297,7 +297,7 @@ static int read_major_sync(MLPDecodeContext *m, GetBitContext *gb)
     m->avctx->frame_size     = mh.access_unit_size;
 
 #ifdef CONFIG_AUDIO_NONSHORT
-    m->avctx->bits_per_sample = mh.group1_bits;
+    m->avctx->bits_per_raw_sample = mh.group1_bits;
     if (mh.group1_bits > 16) {
         m->avctx->sample_fmt = SAMPLE_FMT_S32;
     }