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
cc26bf0d
Commit
cc26bf0d
authored
Dec 02, 2009
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless params
Originally committed as revision 20708 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e4e8632a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gif.c
libavcodec/gif.c
+4
-4
No files found.
libavcodec/gif.c
View file @
cc26bf0d
...
...
@@ -84,7 +84,7 @@ static int gif_image_write_header(uint8_t **bytestream,
}
static
int
gif_image_write_image
(
uint8_t
**
bytestream
,
int
x1
,
int
y1
,
int
width
,
int
height
,
int
width
,
int
height
,
const
uint8_t
*
buf
,
int
linesize
,
int
pix_fmt
)
{
PutBitContext
p
;
...
...
@@ -94,8 +94,8 @@ static int gif_image_write_image(uint8_t **bytestream,
/* image block */
bytestream_put_byte
(
bytestream
,
0x2c
);
bytestream_put_le16
(
bytestream
,
x1
);
bytestream_put_le16
(
bytestream
,
y1
);
bytestream_put_le16
(
bytestream
,
0
);
bytestream_put_le16
(
bytestream
,
0
);
bytestream_put_le16
(
bytestream
,
width
);
bytestream_put_le16
(
bytestream
,
height
);
bytestream_put_byte
(
bytestream
,
0x00
);
/* flags */
...
...
@@ -162,7 +162,7 @@ static int gif_encode_frame(AVCodecContext *avctx, unsigned char *outbuf, int bu
p
->
pict_type
=
FF_I_TYPE
;
p
->
key_frame
=
1
;
gif_image_write_header
(
&
outbuf_ptr
,
avctx
->
width
,
avctx
->
height
,
(
uint32_t
*
)
pict
->
data
[
1
]);
gif_image_write_image
(
&
outbuf_ptr
,
0
,
0
,
avctx
->
width
,
avctx
->
height
,
pict
->
data
[
0
],
pict
->
linesize
[
0
],
PIX_FMT_PAL8
);
gif_image_write_image
(
&
outbuf_ptr
,
avctx
->
width
,
avctx
->
height
,
pict
->
data
[
0
],
pict
->
linesize
[
0
],
PIX_FMT_PAL8
);
return
outbuf_ptr
-
outbuf
;
}
...
...
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