[FFmpeg-cvslog] truespeech: set channel layout
Justin Ruggles
git at videolan.org
Fri Nov 2 14:32:43 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Oct 23 00:53:16 2012 -0400| [cebea00c8abac0817d3ae8bdd9573a603c655b75] | committer: Justin Ruggles
truespeech: set channel layout
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cebea00c8abac0817d3ae8bdd9573a603c655b75
---
libavcodec/truespeech.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/truespeech.c b/libavcodec/truespeech.c
index bbee146..efe5f45 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);
More information about the ffmpeg-cvslog
mailing list