smacker: add forgotten *
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 12 Sep 2011 21:45:21 +0000 (23:45 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Sep 2011 17:46:23 +0000 (19:46 +0200)
found by fenrir

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f98edc73c599badaa0c075fbffb519a150d03d80)

libavcodec/smacker.c

index d215e32..2a85bda 100644 (file)
@@ -659,7 +659,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
     } else { //8-bit data
         for(i = stereo; i >= 0; i--)
             pred[i] = get_bits(&gb, 8);
-        if (stereo + unp_size > data_size)
+        if (stereo + unp_size > *data_size)
             return -1;
         for(i = 0; i < stereo; i++)
             *samples8++ = pred[i];