浏览代码

added GIF support

Nicolas Cannasse 13 年之前
父节点
当前提交
1f73096636
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      genswf.ml

+ 2 - 0
genswf.ml

@@ -738,6 +738,7 @@ let build_swf8 com codeclip exports =
 type file_format =
 	| BJPG
 	| BPNG
+	| BGIF
 	| SWAV
 	| SMP3
 
@@ -748,6 +749,7 @@ let detect_format data p =
 	| 'R', 'I', 'F' -> SWAV
 	| 'I', 'D', '3' -> SMP3
 	| '\xFF', '\xFB', _ -> SMP3
+	| 'G', 'I', 'F' -> BGIF
 	| _ ->
 		error "Unknown file format" p