]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/qcp.c
libfdk-aacdec: Bump the max number of channels to 8
[ffmpeg] / libavformat / qcp.c
index bde59901efa1eef7db27cde7ce1ffa874de232e3..be06e2f4ec68b1b117d0298727510882a6242478 100644 (file)
  *     http://tools.ietf.org/html/rfc3625
  */
 
+#include "libavutil/channel_layout.h"
 #include "libavutil/intreadwrite.h"
 #include "avformat.h"
 
-typedef struct {
+typedef struct QCPContext {
     uint32_t data_size;                     ///< size of data chunk
 
 #define QCP_MAX_MODE 4
@@ -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;