summaryrefslogtreecommitdiff
path: root/libavformat/bethsoftvid.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-07 12:05:36 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-12 10:33:18 -0500
commitb5d1a15d1b298f466c848c0454ef546ec135be14 (patch)
tree8eba9f99e2863403f6aaa3510b4c3bc369baf79e /libavformat/bethsoftvid.c
parent39f0e9b8c6f7d99cbf0a3c1784eb6f20bf88ac3a (diff)
downloadffmpeg-b5d1a15d1b298f466c848c0454ef546ec135be14.tar.gz
bethsoftvid: set channel layout
Diffstat (limited to 'libavformat/bethsoftvid.c')
-rw-r--r--libavformat/bethsoftvid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c
index ece230ccb7..3a102c0b72 100644
--- a/libavformat/bethsoftvid.c
+++ b/libavformat/bethsoftvid.c
@@ -27,6 +27,7 @@
* @see http://www.svatopluk.com/andux/docs/dfvid.html
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
@@ -239,6 +240,7 @@ static int vid_read_packet(AVFormatContext *s,
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
st->codec->codec_id = AV_CODEC_ID_PCM_U8;
st->codec->channels = 1;
+ st->codec->channel_layout = AV_CH_LAYOUT_MONO;
st->codec->bits_per_coded_sample = 8;
st->codec->sample_rate = vid->sample_rate;
st->codec->bit_rate = 8 * st->codec->sample_rate;