[FFmpeg-cvslog] r15275 - trunk/libavcodec/alac.c

jai_menon subversion
Mon Sep 8 21:05:46 CEST 2008


Author: jai_menon
Date: Mon Sep  8 21:05:46 2008
New Revision: 15275

Log:
alac : fix case where bits_per_sample is not set.
Patch by Baptiste


Modified:
   trunk/libavcodec/alac.c

Modified: trunk/libavcodec/alac.c
==============================================================================
--- trunk/libavcodec/alac.c	(original)
+++ trunk/libavcodec/alac.c	Mon Sep  8 21:05:46 2008
@@ -597,7 +597,7 @@ static av_cold int alac_decode_init(AVCo
     alac->context_initialized = 0;
 
     alac->numchannels = alac->avctx->channels;
-    alac->bytespersample = (avctx->bits_per_coded_sample / 8) * alac->numchannels;
+    alac->bytespersample = 2 * alac->numchannels;
     avctx->sample_fmt = SAMPLE_FMT_S16;
 
     return 0;




More information about the ffmpeg-cvslog mailing list