You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Set channel_layout
Originally committed as revision 15843 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -1177,6 +1177,7 @@ static int cook_decode_init(AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
avctx->sample_fmt = SAMPLE_FMT_S16;
|
avctx->sample_fmt = SAMPLE_FMT_S16;
|
||||||
|
avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
|
||||||
|
|
||||||
#ifdef COOKDEBUG
|
#ifdef COOKDEBUG
|
||||||
dump_cook_context(q);
|
dump_cook_context(q);
|
||||||
|
@@ -155,6 +155,7 @@ static av_cold int imc_decode_init(AVCodecContext * avctx)
|
|||||||
ff_fft_init(&q->fft, 7, 1);
|
ff_fft_init(&q->fft, 7, 1);
|
||||||
dsputil_init(&q->dsp, avctx);
|
dsputil_init(&q->dsp, avctx);
|
||||||
avctx->sample_fmt = SAMPLE_FMT_S16;
|
avctx->sample_fmt = SAMPLE_FMT_S16;
|
||||||
|
avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -148,6 +148,7 @@ static av_cold int decode_init(AVCodecContext * avctx) {
|
|||||||
ff_sine_window_init(sine_window, 128);
|
ff_sine_window_init(sine_window, 128);
|
||||||
|
|
||||||
avctx->sample_fmt = SAMPLE_FMT_S16;
|
avctx->sample_fmt = SAMPLE_FMT_S16;
|
||||||
|
avctx->channel_layout = CH_LAYOUT_MONO;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user