Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
88faba8e
Commit
88faba8e
authored
Sep 18, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Create global metadata blocks in the GIF decoder.
parent
629e7f44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
ungif.c
dlls/windowscodecs/ungif.c
+13
-2
ungif.h
dlls/windowscodecs/ungif.h
+1
-0
No files found.
dlls/windowscodecs/ungif.c
View file @
88faba8e
...
...
@@ -884,13 +884,21 @@ DGifSlurp(GifFileType * GifFile) {
break
;
case
EXTENSION_RECORD_TYPE
:
if
(
DGifGetExtension
(
GifFile
,
&
temp_save
.
Function
,
&
ExtData
)
==
{
Extensions
*
Extensions
;
if
(
GifFile
->
ImageCount
)
Extensions
=
&
temp_save
;
else
Extensions
=
&
GifFile
->
Extensions
;
if
(
DGifGetExtension
(
GifFile
,
&
Extensions
->
Function
,
&
ExtData
)
==
GIF_ERROR
)
return
(
GIF_ERROR
);
while
(
ExtData
!=
NULL
)
{
/* Create an extension block with our data */
if
(
AddExtensionBlock
(
&
temp_save
,
ExtData
[
0
],
&
ExtData
[
1
])
if
(
AddExtensionBlock
(
Extensions
,
ExtData
[
0
],
&
ExtData
[
1
])
==
GIF_ERROR
)
return
(
GIF_ERROR
);
...
...
@@ -899,6 +907,7 @@ DGifSlurp(GifFileType * GifFile) {
temp_save
.
Function
=
0
;
}
break
;
}
case
TERMINATE_RECORD_TYPE
:
break
;
...
...
@@ -1003,6 +1012,8 @@ DGifCloseFile(GifFileType * GifFile) {
GifFile
->
SavedImages
=
NULL
;
}
FreeExtension
(
&
GifFile
->
Extensions
);
ungif_free
(
GifFile
);
return
GIF_OK
;
...
...
dlls/windowscodecs/ungif.h
View file @
88faba8e
...
...
@@ -117,6 +117,7 @@ typedef struct GifFileType {
SBackGroundColor
,
/* I hope you understand this one... */
SAspectRatio
;
/* Pixel aspect ratio, in 1/64 units, starting at 1:4. */
ColorMapObject
*
SColorMap
;
/* NULL if not exists. */
Extensions
Extensions
;
int
ImageCount
;
/* Number of current image */
GifImageDesc
Image
;
/* Block describing current image */
struct
SavedImage
*
SavedImages
;
/* Use this to accumulate file state */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment