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
01367b0f
Commit
01367b0f
authored
Apr 18, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/gif: merge gif_write_{packet,video}.
Avoid a pointless split.
parent
b7a3f143
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
gif.c
libavformat/gif.c
+3
-9
No files found.
libavformat/gif.c
View file @
01367b0f
...
...
@@ -99,9 +99,9 @@ static int gif_write_header(AVFormatContext *s)
return
0
;
}
static
int
gif_write_video
(
AVFormatContext
*
s
,
AVCodecContext
*
enc
,
const
uint8_t
*
buf
,
int
size
)
static
int
gif_write_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
AVCodecContext
*
enc
=
s
->
streams
[
pkt
->
stream_index
]
->
codec
;
AVIOContext
*
pb
=
s
->
pb
;
int
jiffies
;
...
...
@@ -123,17 +123,11 @@ static int gif_write_video(AVFormatContext *s, AVCodecContext *enc,
avio_w8
(
pb
,
0x1f
);
/* transparent color index */
avio_w8
(
pb
,
0x00
);
avio_write
(
pb
,
buf
,
size
);
avio_write
(
pb
,
pkt
->
data
,
pkt
->
size
);
return
0
;
}
static
int
gif_write_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
AVCodecContext
*
codec
=
s
->
streams
[
pkt
->
stream_index
]
->
codec
;
return
gif_write_video
(
s
,
codec
,
pkt
->
data
,
pkt
->
size
);
}
static
int
gif_write_trailer
(
AVFormatContext
*
s
)
{
AVIOContext
*
pb
=
s
->
pb
;
...
...
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