Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
49435d38
Commit
49435d38
authored
Dec 01, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gifdec: read pixel aspect ratio
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
ddd87236
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
gifdec.c
libavcodec/gifdec.c
+5
-1
No files found.
libavcodec/gifdec.c
View file @
49435d38
...
@@ -387,7 +387,11 @@ static int gif_read_header1(GifState *s)
...
@@ -387,7 +387,11 @@ static int gif_read_header1(GifState *s)
s
->
has_global_palette
=
(
v
&
0x80
);
s
->
has_global_palette
=
(
v
&
0x80
);
s
->
bits_per_pixel
=
(
v
&
0x07
)
+
1
;
s
->
bits_per_pixel
=
(
v
&
0x07
)
+
1
;
background_color_index
=
bytestream_get_byte
(
&
s
->
bytestream
);
background_color_index
=
bytestream_get_byte
(
&
s
->
bytestream
);
bytestream_get_byte
(
&
s
->
bytestream
);
/* ignored */
n
=
bytestream_get_byte
(
&
s
->
bytestream
);
if
(
n
)
{
s
->
avctx
->
sample_aspect_ratio
.
num
=
n
+
15
;
s
->
avctx
->
sample_aspect_ratio
.
den
=
64
;
}
av_dlog
(
s
->
avctx
,
"screen_w=%d screen_h=%d bpp=%d global_palette=%d
\n
"
,
av_dlog
(
s
->
avctx
,
"screen_w=%d screen_h=%d bpp=%d global_palette=%d
\n
"
,
s
->
screen_width
,
s
->
screen_height
,
s
->
bits_per_pixel
,
s
->
screen_width
,
s
->
screen_height
,
s
->
bits_per_pixel
,
...
...
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