Mercurial > libavcodec.hg
diff alac.c @ 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 | 4525dcd81357 |
| children | e9d9d946f213 |
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;
