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
674b59c0
Commit
674b59c0
authored
Jan 06, 2019
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/bsf_list: implement a AVBSFContext.flush callback
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
2d580d72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
bsf.c
libavcodec/bsf.c
+10
-0
No files found.
libavcodec/bsf.c
View file @
674b59c0
...
...
@@ -350,6 +350,15 @@ static int bsf_list_filter(AVBSFContext *bsf, AVPacket *out)
return
ret
;
}
static
void
bsf_list_flush
(
AVBSFContext
*
bsf
)
{
BSFListContext
*
lst
=
bsf
->
priv_data
;
for
(
int
i
=
0
;
i
<
lst
->
nb_bsfs
;
i
++
)
av_bsf_flush
(
lst
->
bsfs
[
i
]);
lst
->
idx
=
lst
->
flushed_idx
=
0
;
}
static
void
bsf_list_close
(
AVBSFContext
*
bsf
)
{
BSFListContext
*
lst
=
bsf
->
priv_data
;
...
...
@@ -398,6 +407,7 @@ const AVBitStreamFilter ff_list_bsf = {
.
priv_class
=
&
bsf_list_class
,
.
init
=
bsf_list_init
,
.
filter
=
bsf_list_filter
,
.
flush
=
bsf_list_flush
,
.
close
=
bsf_list_close
,
};
...
...
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