]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/gsmdec.c
Vivo demuxer
[ffmpeg] / libavcodec / gsmdec.c
index fc042fbd7b4577c211d01011197555d2f38c07ee..f6f99bdd8e3cb7280178f0df140a1cc2111fdb5e 100644 (file)
@@ -24,6 +24,7 @@
  * GSM decoder
  */
 
+#include "libavutil/channel_layout.h"
 #include "avcodec.h"
 #include "get_bits.h"
 #include "msgsmdec.h"
@@ -34,10 +35,11 @@ static av_cold int gsm_init(AVCodecContext *avctx)
 {
     GSMContext *s = avctx->priv_data;
 
-    avctx->channels = 1;
+    avctx->channels       = 1;
+    avctx->channel_layout = AV_CH_LAYOUT_MONO;
     if (!avctx->sample_rate)
         avctx->sample_rate = 8000;
-    avctx->sample_fmt = AV_SAMPLE_FMT_S16;
+    avctx->sample_fmt     = AV_SAMPLE_FMT_S16;
 
     switch (avctx->codec_id) {
     case AV_CODEC_ID_GSM: