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
9db1c645
Commit
9db1c645
authored
Apr 18, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/gif: support only GIF codec.
parent
01367b0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
gif.c
libavformat/gif.c
+4
-3
No files found.
libavformat/gif.c
View file @
9db1c645
...
...
@@ -77,10 +77,11 @@ static int gif_write_header(AVFormatContext *s)
int
width
,
height
;
uint32_t
palette
[
AVPALETTE_COUNT
];
if
(
s
->
nb_streams
!=
1
||
!
s
->
streams
[
0
]
->
codec
||
s
->
streams
[
0
]
->
codec
->
codec_type
!=
AVMEDIA_TYPE_VIDEO
)
{
if
(
s
->
nb_streams
!=
1
||
s
->
streams
[
0
]
->
codec
->
codec_type
!=
AVMEDIA_TYPE_VIDEO
||
s
->
streams
[
0
]
->
codec
->
codec_id
!=
AV_CODEC_ID_GIF
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"GIF
supports only a single video
stream.
\n
"
);
"GIF
muxer supports only a single video GIF
stream.
\n
"
);
return
AVERROR
(
EINVAL
);
}
...
...
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