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
e5b1f2b0
Commit
e5b1f2b0
authored
Jul 27, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpeg4_unpack_bframes_bsf: implement a AVBSFContext.flush() callback
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
e9980c45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mpeg4_unpack_bframes_bsf.c
libavcodec/mpeg4_unpack_bframes_bsf.c
+7
-0
No files found.
libavcodec/mpeg4_unpack_bframes_bsf.c
View file @
e5b1f2b0
...
...
@@ -166,6 +166,12 @@ static int mpeg4_unpack_bframes_init(AVBSFContext *ctx)
return
0
;
}
static
void
mpeg4_unpack_bframes_flush
(
AVBSFContext
*
bsfc
)
{
UnpackBFramesBSFContext
*
ctx
=
bsfc
->
priv_data
;
av_packet_unref
(
ctx
->
b_frame
);
}
static
void
mpeg4_unpack_bframes_close
(
AVBSFContext
*
bsfc
)
{
UnpackBFramesBSFContext
*
ctx
=
bsfc
->
priv_data
;
...
...
@@ -181,6 +187,7 @@ const AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf = {
.
priv_data_size
=
sizeof
(
UnpackBFramesBSFContext
),
.
init
=
mpeg4_unpack_bframes_init
,
.
filter
=
mpeg4_unpack_bframes_filter
,
.
flush
=
mpeg4_unpack_bframes_flush
,
.
close
=
mpeg4_unpack_bframes_close
,
.
codec_ids
=
codec_ids
,
};
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