projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e368d7
)
100l, since we already check for buf_size == 769 we should also
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 2 Feb 2008 22:34:44 +0000
(22:34 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 2 Feb 2008 22:34:44 +0000
(22:34 +0000)
handle buf_size < 769 instead of just crashing in smacker decoder.
Originally committed as revision 11822 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/smacker.c
patch
|
blob
|
history
diff --git
a/libavcodec/smacker.c
b/libavcodec/smacker.c
index
1121f9b
..
d863938
100644
(file)
--- 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);