# HG changeset patch # User jai_menon # Date 1220900746 0 # Node ID fe449020b7136a3351d8f8325809977220cbc672 # Parent bc904d7e555112d080f36b1736b503e99c4a6303 alac : fix case where bits_per_sample is not set. Patch by Baptiste diff -r bc904d7e5551 -r fe449020b713 alac.c --- 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;