Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
c0d6eaca
Commit
c0d6eaca
authored
May 27, 2020
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bsf: switch to child_class_iterate()
parent
e0fbb6cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
bitstream_filters.c
libavcodec/bitstream_filters.c
+14
-0
bsf.c
libavcodec/bsf.c
+3
-0
bsf_internal.h
libavcodec/bsf_internal.h
+4
-0
No files found.
libavcodec/bitstream_filters.c
View file @
c0d6eaca
...
...
@@ -96,6 +96,7 @@ const AVBitStreamFilter *av_bsf_get_by_name(const char *name)
return
NULL
;
}
#if FF_API_CHILD_CLASS_NEXT
const
AVClass
*
ff_bsf_child_class_next
(
const
AVClass
*
prev
)
{
const
AVBitStreamFilter
*
f
=
NULL
;
...
...
@@ -115,3 +116,16 @@ const AVClass *ff_bsf_child_class_next(const AVClass *prev)
}
return
NULL
;
}
#endif
const
AVClass
*
ff_bsf_child_class_iterate
(
void
**
opaque
)
{
const
AVBitStreamFilter
*
f
;
/* find next filter with priv options */
while
((
f
=
av_bsf_iterate
(
opaque
)))
{
if
(
f
->
priv_class
)
return
f
->
priv_class
;
}
return
NULL
;
}
libavcodec/bsf.c
View file @
c0d6eaca
...
...
@@ -79,7 +79,10 @@ static const AVClass bsf_class = {
.
item_name
=
bsf_to_name
,
.
version
=
LIBAVUTIL_VERSION_INT
,
.
child_next
=
bsf_child_next
,
#if FF_API_CHILD_CLASS_NEXT
.
child_class_next
=
ff_bsf_child_class_next
,
#endif
.
child_class_iterate
=
ff_bsf_child_class_iterate
,
.
category
=
AV_CLASS_CATEGORY_BITSTREAM_FILTER
,
};
...
...
libavcodec/bsf_internal.h
View file @
c0d6eaca
...
...
@@ -42,6 +42,10 @@ int ff_bsf_get_packet(AVBSFContext *ctx, AVPacket **pkt);
*/
int
ff_bsf_get_packet_ref
(
AVBSFContext
*
ctx
,
AVPacket
*
pkt
);
#if FF_API_CHILD_CLASS_NEXT
const
AVClass
*
ff_bsf_child_class_next
(
const
AVClass
*
prev
);
#endif
const
AVClass
*
ff_bsf_child_class_iterate
(
void
**
opaque
);
#endif
/* AVCODEC_BSF_INTERNAL_H */
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