diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-07 16:56:48 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-12 10:33:20 -0500 |
commit | f24b0b1b6cc3357637570d28f9a9fa285bec1770 (patch) | |
tree | a992aa41faaa6a690bb044d24c3d96194f52af62 /libavformat | |
parent | 87199d34db5d79ad85c0801b29db0709c08f458c (diff) | |
download | ffmpeg-f24b0b1b6cc3357637570d28f9a9fa285bec1770.tar.gz |
mmf: set channel layout
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mmf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mmf.c b/libavformat/mmf.c index 06d4a2b277..20570f2812 100644 --- a/libavformat/mmf.c +++ b/libavformat/mmf.c @@ -18,6 +18,8 @@ * License along with Libav; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ + +#include "libavutil/channel_layout.h" #include "avformat.h" #include "internal.h" #include "avio_internal.h" @@ -249,6 +251,7 @@ static int mmf_read_header(AVFormatContext *s) st->codec->codec_id = AV_CODEC_ID_ADPCM_YAMAHA; st->codec->sample_rate = rate; st->codec->channels = 1; + st->codec->channel_layout = AV_CH_LAYOUT_MONO; st->codec->bits_per_coded_sample = 4; st->codec->bit_rate = st->codec->sample_rate * st->codec->bits_per_coded_sample; |