[FFmpeg-cvslog] bethsoftvid: set channel layout
Justin Ruggles
git at videolan.org
Tue Nov 13 11:00:16 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Apr 7 12:05:36 2012 -0400| [b5d1a15d1b298f466c848c0454ef546ec135be14] | committer: Justin Ruggles
bethsoftvid: set channel layout
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b5d1a15d1b298f466c848c0454ef546ec135be14
---
libavformat/bethsoftvid.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c
index ece230c..3a102c0 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;
More information about the ffmpeg-cvslog
mailing list