git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
47ca248
)
alac: fix bps check
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 10 Nov 2012 20:54:30 +0000
(21:54 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 10 Nov 2012 20:54:30 +0000
(21:54 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/alac.c
patch
|
blob
|
history
diff --git
a/libavcodec/alac.c
b/libavcodec/alac.c
index
93db034
..
2b1eedb
100644
(file)
--- a/
libavcodec/alac.c
+++ b/
libavcodec/alac.c
@@
-303,7
+303,7
@@
static int decode_element(AVCodecContext *avctx, void *data, int ch_index,
alac->extra_bits = get_bits(&alac->gb, 2) << 3;
bps = alac->sample_size - alac->extra_bits + channels - 1;
alac->extra_bits = get_bits(&alac->gb, 2) << 3;
bps = alac->sample_size - alac->extra_bits + channels - 1;
- if (bps > 32) {
+ if (bps > 32
U
) {
av_log(avctx, AV_LOG_ERROR, "bps is unsupported: %d\n", bps);
return AVERROR_PATCHWELCOME;
}
av_log(avctx, AV_LOG_ERROR, "bps is unsupported: %d\n", bps);
return AVERROR_PATCHWELCOME;
}