diff options
author | Baptiste Coudurier <baptiste.coudurier@smartjog.com> | 2008-09-08 19:05:46 +0000 |
---|---|---|
committer | Jai Menon <jmenon86@gmail.com> | 2008-09-08 19:05:46 +0000 |
commit | 9345ae6f782719156acb5e0474226eb15d9f7ce2 (patch) | |
tree | aed7a686b8994bdcafac1caad8664aa4ea6882d9 /libavcodec/alac.c | |
parent | c7e34ddc42018fccff68eb30ef4a73073b6a5516 (diff) | |
download | ffmpeg-9345ae6f782719156acb5e0474226eb15d9f7ce2.tar.gz |
alac : fix case where bits_per_sample is not set.
Patch by Baptiste
Originally committed as revision 15275 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r-- | libavcodec/alac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c index 9c5f621904..8cf1ccc69c 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -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; |