summaryrefslogtreecommitdiff
path: root/libavcodec/truespeech.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-23 00:53:16 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-01 11:29:18 -0400
commitcebea00c8abac0817d3ae8bdd9573a603c655b75 (patch)
tree170282e9d7fbd22b6923286116fe00a28484075c /libavcodec/truespeech.c
parent523734eb6a904c43cf73d801f1c885829380f0de (diff)
downloadffmpeg-cebea00c8abac0817d3ae8bdd9573a603c655b75.tar.gz
truespeech: set channel layout
Diffstat (limited to 'libavcodec/truespeech.c')
-rw-r--r--libavcodec/truespeech.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/truespeech.c b/libavcodec/truespeech.c
index bbee146136..efe5f45706 100644
--- a/libavcodec/truespeech.c
+++ b/libavcodec/truespeech.c
@@ -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);