diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-07 16:44:46 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-12 10:33:19 -0500 |
commit | 41a2d9590d89c3f240b1ef875649852197d945eb (patch) | |
tree | e92bf4762f51d017ed01a61f636bfb16a93465ed /libavformat | |
parent | 024e03701c706d3976348b9f50a1af7db2137a39 (diff) | |
download | ffmpeg-41a2d9590d89c3f240b1ef875649852197d945eb.tar.gz |
ipmovie: set channel layout
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/ipmovie.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c index b567fb2b14..60ae939003 100644 --- a/libavformat/ipmovie.c +++ b/libavformat/ipmovie.c @@ -32,6 +32,7 @@ * up and sending out the chunks. */ +#include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "avformat.h" #include "internal.h" @@ -600,6 +601,8 @@ static int ipmovie_read_header(AVFormatContext *s) st->codec->codec_id = ipmovie->audio_type; st->codec->codec_tag = 0; /* no tag */ st->codec->channels = ipmovie->audio_channels; + st->codec->channel_layout = st->codec->channels == 1 ? AV_CH_LAYOUT_MONO : + AV_CH_LAYOUT_STEREO; st->codec->sample_rate = ipmovie->audio_sample_rate; st->codec->bits_per_coded_sample = ipmovie->audio_bits; st->codec->bit_rate = st->codec->channels * st->codec->sample_rate * |