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
90a56ebb
Commit
90a56ebb
authored
Apr 18, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/gif: avoid encoding 0x0 images.
It seems browsers don't like it very much.
parent
9db1c645
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gif.c
libavcodec/gif.c
+2
-2
No files found.
libavcodec/gif.c
View file @
90a56ebb
...
...
@@ -87,7 +87,7 @@ static int gif_image_write_image(AVCodecContext *avctx,
y_end
=
avctx
->
height
-
1
;
/* skip common lines */
while
(
y_start
<
height
)
{
while
(
y_start
<
y_end
)
{
if
(
memcmp
(
ref
+
y_start
*
ref_linesize
,
buf
+
y_start
*
linesize
,
width
))
break
;
y_start
++
;
...
...
@@ -100,7 +100,7 @@ static int gif_image_write_image(AVCodecContext *avctx,
height
=
y_end
+
1
-
y_start
;
/* skip common columns */
while
(
x_start
<
width
)
{
while
(
x_start
<
x_end
)
{
int
same_column
=
1
;
for
(
y
=
y_start
;
y
<
y_end
;
y
++
)
{
if
(
ref
[
y
*
ref_linesize
+
x_start
]
!=
buf
[
y
*
linesize
+
x_start
])
{
...
...
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