[FFmpeg-cvslog] r15766 - trunk/libavcodec/dca.c

banan subversion
Sat Nov 1 21:49:38 CET 2008


Author: banan
Date: Sat Nov  1 21:49:37 2008
New Revision: 15766

Log:
Guess channel layout based on the number of channels if a custom layout is specified in amode.


Modified:
   trunk/libavcodec/dca.c

Modified: trunk/libavcodec/dca.c
==============================================================================
--- trunk/libavcodec/dca.c	(original)
+++ trunk/libavcodec/dca.c	Sat Nov  1 21:49:37 2008
@@ -1215,11 +1215,6 @@ static int dca_decode_frame(AVCodecConte
     }
     if (s->amode<16)
         avctx->channel_layout = dca_core_channel_layout[s->amode];
-    else {
-        av_log(avctx, AV_LOG_ERROR, "Custom channel layouts not supported\n");
-        //Maybe just guess layout depending on the channel count
-        return -1;
-    }
 
     if (s->lfe) avctx->channel_layout |= CHANNEL_LOW_FREQUENCY;
 




More information about the ffmpeg-cvslog mailing list