[FFmpeg-cvslog] alac: fix bps check

Michael Niedermayer git at videolan.org
Sat Nov 10 22:15:44 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 10 21:54:30 2012 +0100| [a1e093a6fb324612266d40e3168a14f58adab265] | committer: Michael Niedermayer

alac: fix bps check

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a1e093a6fb324612266d40e3168a14f58adab265
---

 libavcodec/alac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 93db034..2b1eedb 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;
     }



More information about the ffmpeg-cvslog mailing list