Set channel_layout
Originally committed as revision 15843 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
55374d57e8
commit
31d5113a15
@ -1177,6 +1177,7 @@ static int cook_decode_init(AVCodecContext *avctx)
|
||||
}
|
||||
|
||||
avctx->sample_fmt = SAMPLE_FMT_S16;
|
||||
avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
|
||||
|
||||
#ifdef COOKDEBUG
|
||||
dump_cook_context(q);
|
||||
|
@ -155,6 +155,7 @@ static av_cold int imc_decode_init(AVCodecContext * avctx)
|
||||
ff_fft_init(&q->fft, 7, 1);
|
||||
dsputil_init(&q->dsp, avctx);
|
||||
avctx->sample_fmt = SAMPLE_FMT_S16;
|
||||
avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -148,6 +148,7 @@ static av_cold int decode_init(AVCodecContext * avctx) {
|
||||
ff_sine_window_init(sine_window, 128);
|
||||
|
||||
avctx->sample_fmt = SAMPLE_FMT_S16;
|
||||
avctx->channel_layout = CH_LAYOUT_MONO;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user