]> git.sesse.net Git - ffmpeg/commitdiff
truespeech: set channel layout
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 23 Oct 2012 04:53:16 +0000 (00:53 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 1 Nov 2012 15:29:18 +0000 (11:29 -0400)
libavcodec/truespeech.c

index bbee14613641f26a34d3560aa74f0bab63c395fd..efe5f457069fb4273d540a4a217fc687696d2167 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/audioconvert.h"
 #include "libavutil/intreadwrite.h"
 #include "avcodec.h"
 #include "dsputil.h"
@@ -66,7 +67,8 @@ static av_cold int truespeech_decode_init(AVCodecContext * avctx)
         return AVERROR(EINVAL);
     }
 
-    avctx->sample_fmt = AV_SAMPLE_FMT_S16;
+    avctx->channel_layout = AV_CH_LAYOUT_MONO;
+    avctx->sample_fmt     = AV_SAMPLE_FMT_S16;
 
     ff_dsputil_init(&c->dsp, avctx);