aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-07 13:51:42 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-12 10:33:19 -0500
commitd4a105ae5c1b0c6118872c8b729c3ac751281ed0 (patch)
treeb3f0b1c2ab85ba8a98165fa000203d152376c646
parent644d8d2e5abcad4e6cd2d5761b4f97813fbda96f (diff)
downloadffmpeg-d4a105ae5c1b0c6118872c8b729c3ac751281ed0.tar.gz
gsmdec: set channel layout
-rw-r--r--libavformat/gsmdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/gsmdec.c b/libavformat/gsmdec.c
index f0cb2799bf..f9ecbafcda 100644
--- a/libavformat/gsmdec.c
+++ b/libavformat/gsmdec.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "avformat.h"
@@ -64,6 +65,7 @@ static int gsm_read_header(AVFormatContext *s)
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
st->codec->codec_id = s->iformat->raw_codec_id;
st->codec->channels = 1;
+ st->codec->channel_layout = AV_CH_LAYOUT_MONO;
st->codec->sample_rate = c->sample_rate;
st->codec->bit_rate = GSM_BLOCK_SIZE * 8 * c->sample_rate / GSM_BLOCK_SAMPLES;