aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alac.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-10 21:54:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-10 21:54:30 +0100
commita1e093a6fb324612266d40e3168a14f58adab265 (patch)
tree853bcf6d53c60f8dc235974a1772604e8cf4241e /libavcodec/alac.c
parent47ca2487ae88358a324f620cfb50095d086ed8f5 (diff)
downloadandroid_external_ffmpeg-a1e093a6fb324612266d40e3168a14f58adab265.tar.gz
android_external_ffmpeg-a1e093a6fb324612266d40e3168a14f58adab265.tar.bz2
android_external_ffmpeg-a1e093a6fb324612266d40e3168a14f58adab265.zip
alac: fix bps check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r--libavcodec/alac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 93db034fec..2b1eedb5ad 100644
--- 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;
- if (bps > 32) {
+ if (bps > 32U) {
av_log(avctx, AV_LOG_ERROR, "bps is unsupported: %d\n", bps);
return AVERROR_PATCHWELCOME;
}