OSDN Git Service
(root)
/
swfed
/
swfed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cc1d56
)
αチャネルデータのzlib圧縮率の最大見積もりを 256から384に増やした
author
yoya
<yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Fri, 19 Jun 2009 02:47:41 +0000
(
02:47
+0000)
committer
yoya
<yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Fri, 19 Jun 2009 02:47:41 +0000
(
02:47
+0000)
(実際に足りないケースがあったので)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/swfed/trunk@161
7c90b180
-03d5-4157-b861-
58a559ae9d1e
src/swf_tag_jpeg.c
patch
|
blob
|
history
diff --git
a/src/swf_tag_jpeg.c
b/src/swf_tag_jpeg.c
index
3caf531
..
69f7eef
100644
(file)
--- a/
src/swf_tag_jpeg.c
+++ b/
src/swf_tag_jpeg.c
@@
-110,8
+110,8
@@
swf_tag_jpeg3_input_detail(swf_tag_t *tag,
swf_tag_jpeg->jpeg_data_len = offset_to_alpha;
offset = 2 + 4 + offset_to_alpha;
alpha_data_len = length - offset;
- origsize =
256 * alpha_data_len;
- new_buff = malloc(origsize); // enough size
+ origsize =
384 * alpha_data_len; // XXX
+ new_buff = malloc(origsize); // enough size
?
old_buff_ref = bitstream_buffer(bs, offset);
result = uncompress(new_buff, &origsize, old_buff_ref, alpha_data_len);
if (result == Z_OK) {