[FFmpeg-cvslog] mm: set channel layout

Justin Ruggles git at videolan.org
Tue Nov 13 11:18:02 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Apr  7 16:52:57 2012 -0400| [87199d34db5d79ad85c0801b29db0709c08f458c] | committer: Justin Ruggles

mm: set channel layout

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87199d34db5d79ad85c0801b29db0709c08f458c
---

 libavformat/mm.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mm.c b/libavformat/mm.c
index 13f33a2..83539fa 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 */
     }



More information about the ffmpeg-cvslog mailing list