Commit 444b79c1 authored by Justin Ruggles's avatar Justin Ruggles

qcp: set channel layout

parent b5e3e777
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
* http://tools.ietf.org/html/rfc3625 * http://tools.ietf.org/html/rfc3625
*/ */
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avformat.h" #include "avformat.h"
...@@ -96,6 +97,7 @@ static int qcp_read_header(AVFormatContext *s) ...@@ -96,6 +97,7 @@ static int qcp_read_header(AVFormatContext *s)
st->codec->codec_type = AVMEDIA_TYPE_AUDIO; st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
st->codec->channels = 1; st->codec->channels = 1;
st->codec->channel_layout = AV_CH_LAYOUT_MONO;
avio_read(pb, buf, 16); avio_read(pb, buf, 16);
if (is_qcelp_13k_guid(buf)) { if (is_qcelp_13k_guid(buf)) {
st->codec->codec_id = AV_CODEC_ID_QCELP; st->codec->codec_id = AV_CODEC_ID_QCELP;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment