aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-07 17:57:25 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-12 10:33:21 -0500
commit444b79c18acc057082a2fbdd8d0bedefafbea5fd (patch)
tree3e1476650aae1f728e338cf83258de5f5d646ba9
parentb5e3e77711c6a4bef8b343d4d419e7ca67425fbc (diff)
downloadffmpeg-444b79c18acc057082a2fbdd8d0bedefafbea5fd.tar.gz
qcp: set channel layout
-rw-r--r--libavformat/qcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/qcp.c b/libavformat/qcp.c
index bde59901ef..30d362f938 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;