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:
e055932
)
Fixed off by one packet size allocation in the smacker demuxer.
author
Laurent Aimar
<fenrir@videolan.org>
Mon, 12 Sep 2011 18:50:34 +0000
(20:50 +0200)
committer
Martin Storsjö
<martin@martin.st>
Mon, 12 Sep 2011 20:44:51 +0000
(23:44 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/smacker.c
patch
|
blob
|
history
diff --git
a/libavformat/smacker.c
b/libavformat/smacker.c
index
cff1af6
..
995ef41
100644
(file)
--- a/
libavformat/smacker.c
+++ b/
libavformat/smacker.c
@@
-306,7
+306,7
@@
static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
}
if (frame_size < 0)
return AVERROR_INVALIDDATA;
- if (av_new_packet(pkt, frame_size + 76
8
))
+ if (av_new_packet(pkt, frame_size + 76
9
))
return AVERROR(ENOMEM);
if(smk->frm_size[smk->cur_frame] & 1)
palchange |= 2;