diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-08 01:17:19 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-12 19:33:20 +0400 |
commit | 66d7ceb4aa0a17c72de9a63748953d53a1e95a12 (patch) | |
tree | 4953c1bb50d492da678fa1509ffb119cb544a310 /libavformat/mvi.c | |
parent | f6c6e5aac12edd02f5c62e2efa0d8f5af161eb88 (diff) |
mvi: set channel layout
Diffstat (limited to 'libavformat/mvi.c')
-rw-r--r-- | libavformat/mvi.c | 2 |
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; |