...
|
...
|
@@ -31,6 +31,7 @@
|
31
|
31
|
* http://wiki.multimedia.cx/index.php?title=American_Laser_Games_MM
|
32
|
32
|
*/
|
33
|
33
|
|
|
34
|
+#include "libavutil/channel_layout.h"
|
34
|
35
|
#include "libavutil/intreadwrite.h"
|
35
|
36
|
#include "avformat.h"
|
36
|
37
|
#include "internal.h"
|
...
|
...
|
@@ -124,6 +125,7 @@ static int read_header(AVFormatContext *s)
|
124
|
124
|
st->codec->codec_tag = 0; /* no fourcc */
|
125
|
125
|
st->codec->codec_id = AV_CODEC_ID_PCM_U8;
|
126
|
126
|
st->codec->channels = 1;
|
|
127
|
+ st->codec->channel_layout = AV_CH_LAYOUT_MONO;
|
127
|
128
|
st->codec->sample_rate = 8000;
|
128
|
129
|
avpriv_set_pts_info(st, 64, 1, 8000); /* 8000 hz */
|
129
|
130
|
}
|