Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
6fb7d03d
Commit
6fb7d03d
authored
Jun 03, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: seperate encoder/decoder class category
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e69263cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
options.c
libavcodec/options.c
+7
-0
No files found.
libavcodec/options.c
View file @
6fb7d03d
...
...
@@ -65,6 +65,12 @@ static const AVClass *codec_child_class_next(const AVClass *prev)
return
NULL
;
}
static
AVClassCategory
get_category
(
AVCodecContext
*
avctx
)
{
if
(
avctx
->
codec
&&
avctx
->
codec
->
decode
)
return
AV_CLASS_CATEGORY_DECODER
;
else
return
AV_CLASS_CATEGORY_ENCODER
;
}
static
const
AVClass
av_codec_context_class
=
{
.
class_name
=
"AVCodecContext"
,
.
item_name
=
context_to_name
,
...
...
@@ -74,6 +80,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
,
};
#if FF_API_ALLOC_CONTEXT
...
...
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