aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mm.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-07 16:52:57 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-12 10:33:20 -0500
commit87199d34db5d79ad85c0801b29db0709c08f458c (patch)
tree3a3f959d929bfa5cb9bf8050f84372b034103c54 /libavformat/mm.c
parentef1b23ad21e3f12fc4ff2a73a6d4d4cd9d630c4b (diff)
downloadffmpeg-87199d34db5d79ad85c0801b29db0709c08f458c.tar.gz
mm: set channel layout
Diffstat (limited to 'libavformat/mm.c')
-rw-r--r--libavformat/mm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mm.c b/libavformat/mm.c
index 13f33a23ad..83539fa242 100644
--- a/libavformat/mm.c
+++ b/libavformat/mm.c
@@ -31,6 +31,7 @@
* http://wiki.multimedia.cx/index.php?title=American_Laser_Games_MM
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
@@ -124,6 +125,7 @@ static int read_header(AVFormatContext *s)
st->codec->codec_tag = 0; /* no fourcc */
st->codec->codec_id = AV_CODEC_ID_PCM_U8;
st->codec->channels = 1;
+ st->codec->channel_layout = AV_CH_LAYOUT_MONO;
st->codec->sample_rate = 8000;
avpriv_set_pts_info(st, 64, 1, 8000); /* 8000 hz */
}