[FFmpeg-cvslog] qcp: set channel layout

Justin Ruggles git at videolan.org
Tue Nov 13 11:18:03 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Apr  7 17:57:25 2012 -0400| [444b79c18acc057082a2fbdd8d0bedefafbea5fd] | committer: Justin Ruggles

qcp: set channel layout

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

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

diff --git a/libavformat/qcp.c b/libavformat/qcp.c
index bde5990..30d362f 100644
--- a/libavformat/qcp.c
+++ b/libavformat/qcp.c
@@ -27,6 +27,7 @@
  *     http://tools.ietf.org/html/rfc3625
  */
 
+#include "libavutil/channel_layout.h"
 #include "libavutil/intreadwrite.h"
 #include "avformat.h"
 
@@ -96,6 +97,7 @@ static int qcp_read_header(AVFormatContext *s)
 
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
     st->codec->channels   = 1;
+    st->codec->channel_layout = AV_CH_LAYOUT_MONO;
     avio_read(pb, buf, 16);
     if (is_qcelp_13k_guid(buf)) {
         st->codec->codec_id = AV_CODEC_ID_QCELP;



More information about the ffmpeg-cvslog mailing list