summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-07 17:17:19 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-12 10:33:20 -0500
commit66d7ceb4aa0a17c72de9a63748953d53a1e95a12 (patch)
tree4953c1bb50d492da678fa1509ffb119cb544a310
parentf6c6e5aac12edd02f5c62e2efa0d8f5af161eb88 (diff)
mvi: set channel layout
-rw-r--r--libavformat/mvi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mvi.c b/libavformat/mvi.c
index c5aee5a10d..10ec8bbb20 100644
--- a/libavformat/mvi.c
+++ b/libavformat/mvi.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "avformat.h"
#include "internal.h"
@@ -81,6 +82,7 @@ static int read_header(AVFormatContext *s)
ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
ast->codec->codec_id = AV_CODEC_ID_PCM_U8;
ast->codec->channels = 1;
+ ast->codec->channel_layout = AV_CH_LAYOUT_MONO;
ast->codec->bits_per_coded_sample = 8;
ast->codec->bit_rate = ast->codec->sample_rate * 8;