[FFmpeg-cvslog] smacker: add forgotten *

Michael Niedermayer git at videolan.org
Mon Sep 12 23:57:05 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Sep 12 23:45:21 2011 +0200| [f98edc73c599badaa0c075fbffb519a150d03d80] | committer: Michael Niedermayer

smacker: add forgotten *
found by fenrir

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

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

 libavcodec/smacker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index 99cc2f6..851f222 100644
--- a/libavcodec/smacker.c
+++ b/libavcodec/smacker.c
@@ -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];



More information about the ffmpeg-cvslog mailing list