Commit 41657913 authored by jai_menon's avatar jai_menon

alac : fix case where bits_per_sample is not set.

Patch by Baptiste


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15275 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0c71bd1b
......@@ -597,7 +597,7 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment