[FFmpeg-cvslog] dsicin: set channel layout

Justin Ruggles git at videolan.org
Tue Nov 13 11:00:17 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Apr  7 12:56:51 2012 -0400| [49e7af06f2fc68c9031cf7b67fe1cba066e2ace2] | committer: Justin Ruggles

dsicin: set channel layout

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=49e7af06f2fc68c9031cf7b67fe1cba066e2ace2
---

 libavformat/dsicin.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/dsicin.c b/libavformat/dsicin.c
index 8cba461..ecc8c0b 100644
--- a/libavformat/dsicin.c
+++ b/libavformat/dsicin.c
@@ -24,6 +24,7 @@
  * Delphine Software International CIN file demuxer
  */
 
+#include "libavutil/channel_layout.h"
 #include "libavutil/intreadwrite.h"
 #include "avformat.h"
 #include "internal.h"
@@ -131,6 +132,7 @@ static int cin_read_header(AVFormatContext *s)
     st->codec->codec_id = AV_CODEC_ID_DSICINAUDIO;
     st->codec->codec_tag = 0;  /* no tag */
     st->codec->channels = 1;
+    st->codec->channel_layout = AV_CH_LAYOUT_MONO;
     st->codec->sample_rate = 22050;
     st->codec->bits_per_coded_sample = 8;
     st->codec->bit_rate = st->codec->sample_rate * st->codec->bits_per_coded_sample * st->codec->channels;



More information about the ffmpeg-cvslog mailing list