mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
qcelpdec: set channel layout
This commit is contained in:
parent
d26701ce2f
commit
e3d6ab5704
@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#include "libavutil/audioconvert.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "get_bits.h"
|
#include "get_bits.h"
|
||||||
@ -89,7 +90,9 @@ static av_cold int qcelp_decode_init(AVCodecContext *avctx)
|
|||||||
QCELPContext *q = avctx->priv_data;
|
QCELPContext *q = avctx->priv_data;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
|
avctx->channels = 1;
|
||||||
|
avctx->channel_layout = AV_CH_LAYOUT_MONO;
|
||||||
|
avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
|
||||||
|
|
||||||
for (i = 0; i < 10; i++)
|
for (i = 0; i < 10; i++)
|
||||||
q->prev_lspf[i] = (i + 1) / 11.;
|
q->prev_lspf[i] = (i + 1) / 11.;
|
||||||
|
Loading…
Reference in New Issue
Block a user