OSDN Git Service
(root)
/
flapp
/
flapp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1a7257
)
- JpegChunk 分解処理で return してなかったので修正
author
Yoshihiro Yamazaki
<yoya@awm.jp>
Mon, 3 Dec 2012 18:55:03 +0000
(
03:55
+0900)
committer
Yoshihiro Yamazaki
<yoya@awm.jp>
Mon, 3 Dec 2012 18:55:03 +0000
(
03:55
+0900)
- hasDQT を一行にまとめた
bitmap.js
patch
|
blob
|
history
diff --git
a/bitmap.js
b/bitmap.js
index
f7e070d
..
5aec7f1
100644
(file)
--- a/
bitmap.js
+++ b/
bitmap.js
@@
-26,14
+26,12
@@
break;
}
}
+ return offsetTable;
}
FlappBitmap.toJpeg = function(swfJpeg, jpegTables) {
- var hasDQT = false;
var offsetTable = FlappBitmap.jpegChunkOffsets(swfJpeg);
- if (0xFFDB in offsetTable) {
- hasDQT = true;
- }
+ var hasDQT = (0xFFDB in offsetTable)?true:false;
if (hasDQT === false) {
var offsetTable2 = FlappBitmap.jpegChunkOffsets(jpegTables);
}