[FFmpeg-cvslog] r15843 - in trunk/libavcodec: cook.c imc.c nellymoserdec.c

banan subversion
Sun Nov 16 10:54:10 CET 2008


Author: banan
Date: Sun Nov 16 10:54:09 2008
New Revision: 15843

Log:
Set channel_layout

Modified:
   trunk/libavcodec/cook.c
   trunk/libavcodec/imc.c
   trunk/libavcodec/nellymoserdec.c

Modified: trunk/libavcodec/cook.c
==============================================================================
--- trunk/libavcodec/cook.c	(original)
+++ trunk/libavcodec/cook.c	Sun Nov 16 10:54:09 2008
@@ -1177,6 +1177,7 @@ static int cook_decode_init(AVCodecConte
     }
 
     avctx->sample_fmt = SAMPLE_FMT_S16;
+    avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
 
 #ifdef COOKDEBUG
     dump_cook_context(q);

Modified: trunk/libavcodec/imc.c
==============================================================================
--- trunk/libavcodec/imc.c	(original)
+++ trunk/libavcodec/imc.c	Sun Nov 16 10:54:09 2008
@@ -155,6 +155,7 @@ static av_cold int imc_decode_init(AVCod
     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;
 }
 

Modified: trunk/libavcodec/nellymoserdec.c
==============================================================================
--- trunk/libavcodec/nellymoserdec.c	(original)
+++ trunk/libavcodec/nellymoserdec.c	Sun Nov 16 10:54:09 2008
@@ -148,6 +148,7 @@ static av_cold int decode_init(AVCodecCo
         ff_sine_window_init(sine_window, 128);
 
     avctx->sample_fmt = SAMPLE_FMT_S16;
+    avctx->channel_layout = CH_LAYOUT_MONO;
     return 0;
 }
 




More information about the ffmpeg-cvslog mailing list