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
938e4470
Commit
938e4470
authored
Jul 27, 2012
by
jamal
Committed by
Michael Niedermayer
Jul 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
options: Fix warning about incompatible pointer type
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7d1918af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
options.c
libavcodec/options.c
+3
-2
options.c
libavformat/options.c
+2
-1
No files found.
libavcodec/options.c
View file @
938e4470
...
...
@@ -65,8 +65,9 @@ static const AVClass *codec_child_class_next(const AVClass *prev)
return
NULL
;
}
static
AVClassCategory
get_category
(
AVCodecContext
*
avctx
)
static
AVClassCategory
get_category
(
void
*
ptr
)
{
AVCodecContext
*
avctx
=
ptr
;
if
(
avctx
->
codec
&&
avctx
->
codec
->
decode
)
return
AV_CLASS_CATEGORY_DECODER
;
else
return
AV_CLASS_CATEGORY_ENCODER
;
}
...
...
@@ -80,7 +81,7 @@ static const AVClass av_codec_context_class = {
.
child_next
=
codec_child_next
,
.
child_class_next
=
codec_child_class_next
,
.
category
=
AV_CLASS_CATEGORY_ENCODER
,
.
get_category
=
(
void
*
)
get_category
,
.
get_category
=
get_category
,
};
#if FF_API_ALLOC_CONTEXT
...
...
libavformat/options.c
View file @
938e4470
...
...
@@ -76,8 +76,9 @@ static const AVClass *format_child_class_next(const AVClass *prev)
return
NULL
;
}
static
AVClassCategory
get_category
(
AVFormatContext
*
s
)
static
AVClassCategory
get_category
(
void
*
ptr
)
{
AVFormatContext
*
s
=
ptr
;
if
(
s
->
iformat
)
return
AV_CLASS_CATEGORY_DEMUXER
;
else
return
AV_CLASS_CATEGORY_MUXER
;
}
...
...
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