]> git.sesse.net Git - ffmpeg/commitdiff
alac: fix bps check
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 10 Nov 2012 20:54:30 +0000 (21:54 +0100)
committerMichael 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

index 93db034fec81d1f669aca7032b0b7dab66e95e60..2b1eedb5ad22296cb0e147692eeee5823689edcf 100644 (file)
@@ -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;
     }