Browse Source

Set channel_layout

Originally committed as revision 15843 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Benjamin Larsson 17 years ago
parent
commit
31d5113a15
3 changed files with 3 additions and 0 deletions
  1. +1
    -0
      libavcodec/cook.c
  2. +1
    -0
      libavcodec/imc.c
  3. +1
    -0
      libavcodec/nellymoserdec.c

+ 1
- 0
libavcodec/cook.c View File

@@ -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);


+ 1
- 0
libavcodec/imc.c View File

@@ -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;
}



+ 1
- 0
libavcodec/nellymoserdec.c View File

@@ -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…
Cancel
Save