projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7e34dd
)
alac : fix case where bits_per_sample is not set.
author
Baptiste Coudurier
<baptiste.coudurier@smartjog.com>
Mon, 8 Sep 2008 19:05:46 +0000
(19:05 +0000)
committer
Jai Menon
<jmenon86@gmail.com>
Mon, 8 Sep 2008 19:05:46 +0000
(19:05 +0000)
Patch by Baptiste
Originally committed as revision 15275 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/alac.c
patch
|
blob
|
history
diff --git
a/libavcodec/alac.c
b/libavcodec/alac.c
index
9c5f621
..
8cf1ccc
100644
(file)
--- 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;