diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-07 20:56:51 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-12 19:33:19 +0400 |
commit | 49e7af06f2fc68c9031cf7b67fe1cba066e2ace2 (patch) | |
tree | 22fddbf27e1a14be50431fcca34db7a6583bde47 /libavformat/dsicin.c | |
parent | a05a63785c4769a1f3c3cddcc876c5acb6cf4c83 (diff) |
dsicin: set channel layout
Diffstat (limited to 'libavformat/dsicin.c')
-rw-r--r-- | libavformat/dsicin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/dsicin.c b/libavformat/dsicin.c index 8cba461487..ecc8c0b6af 100644 --- a/libavformat/dsicin.c +++ b/libavformat/dsicin.c @@ -24,6 +24,7 @@ * Delphine Software International CIN file demuxer */ +#include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "avformat.h" #include "internal.h" @@ -131,6 +132,7 @@ static int cin_read_header(AVFormatContext *s) st->codec->codec_id = AV_CODEC_ID_DSICINAUDIO; st->codec->codec_tag = 0; /* no tag */ st->codec->channels = 1; + st->codec->channel_layout = AV_CH_LAYOUT_MONO; st->codec->sample_rate = 22050; st->codec->bits_per_coded_sample = 8; st->codec->bit_rate = st->codec->sample_rate * st->codec->bits_per_coded_sample * st->codec->channels; |