1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

bfi: set channel layout

This commit is contained in:
Justin Ruggles 2012-04-07 12:06:41 -04:00
parent b5d1a15d1b
commit ff50d27a63

View File

@ -26,6 +26,7 @@
* @see http://wiki.multimedia.cx/index.php?title=BFI * @see http://wiki.multimedia.cx/index.php?title=BFI
*/ */
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avformat.h" #include "avformat.h"
#include "internal.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_type = AVMEDIA_TYPE_AUDIO;
astream->codec->codec_id = AV_CODEC_ID_PCM_U8; astream->codec->codec_id = AV_CODEC_ID_PCM_U8;
astream->codec->channels = 1; astream->codec->channels = 1;
astream->codec->channel_layout = AV_CH_LAYOUT_MONO;
astream->codec->bits_per_coded_sample = 8; astream->codec->bits_per_coded_sample = 8;
astream->codec->bit_rate = astream->codec->bit_rate =
astream->codec->sample_rate * astream->codec->bits_per_coded_sample; astream->codec->sample_rate * astream->codec->bits_per_coded_sample;