[FFmpeg-cvslog] smacker: add forgotten *

Michael Niedermayer git at videolan.org
Thu Nov 3 03:57:40 CET 2011


ffmpeg | branch: release/0.5 | Michael Niedermayer <michaelni at gmx.at> | Mon Sep 12 23:45:21 2011 +0200| [38423fe0b760de19bf71c017e87f87c982551341] | committer: Michael Niedermayer

smacker: add forgotten *
found by fenrir

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

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

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

diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index f790e08..95a9beb 100644
--- a/libavcodec/smacker.c
+++ b/libavcodec/smacker.c
@@ -660,7 +660,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++)
             *samples++ = (pred[i] - 0x80) << 8;



More information about the ffmpeg-cvslog mailing list