aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-02-02 22:34:44 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-02-02 22:34:44 +0000
commit909063f74551141e181ff806fabe133ebc5e369e (patch)
treef9f2563582706056dc4e46c8ec8d537b5048658f
parent3e368d726a0a7e9febe934f5b8215ea8073154be (diff)
downloadffmpeg-909063f74551141e181ff806fabe133ebc5e369e.tar.gz
100l, since we already check for buf_size == 769 we should also
handle buf_size < 769 instead of just crashing in smacker decoder. Originally committed as revision 11822 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/smacker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index 1121f9b90b..d8639383d5 100644
--- a/libavcodec/smacker.c
+++ b/libavcodec/smacker.c
@@ -355,7 +355,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const
int i;
int stride;
- if(buf_size == 769)
+ if(buf_size <= 769)
return 0;
if(smk->pic.data[0])
avctx->release_buffer(avctx, &smk->pic);