mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
qcp: set channel layout
This commit is contained in:
parent
b5e3e77711
commit
444b79c18a
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue