summaryrefslogtreecommitdiff
path: root/libavformat/bfi.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-07 12:06:41 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-12 10:33:18 -0500
commitff50d27a6391663be2332ec242de23131ac74034 (patch)
tree02e3ce1dd1536c5852417c554601ee09b97b9171 /libavformat/bfi.c
parentb5d1a15d1b298f466c848c0454ef546ec135be14 (diff)
downloadffmpeg-ff50d27a6391663be2332ec242de23131ac74034.tar.gz
bfi: set channel layout
Diffstat (limited to 'libavformat/bfi.c')
-rw-r--r--libavformat/bfi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/bfi.c b/libavformat/bfi.c
index c520bea136..e60bbf4cab 100644
--- a/libavformat/bfi.c
+++ b/libavformat/bfi.c
@@ -26,6 +26,7 @@
* @see http://wiki.multimedia.cx/index.php?title=BFI
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
@@ -96,6 +97,7 @@ static int bfi_read_header(AVFormatContext * s)
astream->codec->codec_type = AVMEDIA_TYPE_AUDIO;
astream->codec->codec_id = AV_CODEC_ID_PCM_U8;
astream->codec->channels = 1;
+ astream->codec->channel_layout = AV_CH_LAYOUT_MONO;
astream->codec->bits_per_coded_sample = 8;
astream->codec->bit_rate =
astream->codec->sample_rate * astream->codec->bits_per_coded_sample;