changeset 7836:fe449020b713 libavcodec

alac : fix case where bits_per_sample is not set. Patch by Baptiste
author jai_menon
date Mon, 08 Sep 2008 19:05:46 +0000
parents bc904d7e5551
children 20a0f6aba1cb
files alac.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/alac.c	Mon Sep 08 18:52:00 2008 +0000
+++ b/alac.c	Mon Sep 08 19:05:46 2008 +0000
@@ -597,7 +597,7 @@
     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;