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
390f1564
Commit
390f1564
authored
Jul 26, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/h264_mp4toannexb_bsf: implement a AVBSFContext.flush() callback
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
b33f5299
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
h264_mp4toannexb_bsf.c
libavcodec/h264_mp4toannexb_bsf.c
+10
-0
No files found.
libavcodec/h264_mp4toannexb_bsf.c
View file @
390f1564
...
...
@@ -280,6 +280,15 @@ fail:
return
ret
;
}
static
void
h264_mp4toannexb_flush
(
AVBSFContext
*
ctx
)
{
H264BSFContext
*
s
=
ctx
->
priv_data
;
s
->
idr_sps_seen
=
0
;
s
->
idr_pps_seen
=
0
;
s
->
new_idr
=
s
->
extradata_parsed
;
}
static
const
enum
AVCodecID
codec_ids
[]
=
{
AV_CODEC_ID_H264
,
AV_CODEC_ID_NONE
,
};
...
...
@@ -289,5 +298,6 @@ const AVBitStreamFilter ff_h264_mp4toannexb_bsf = {
.
priv_data_size
=
sizeof
(
H264BSFContext
),
.
init
=
h264_mp4toannexb_init
,
.
filter
=
h264_mp4toannexb_filter
,
.
flush
=
h264_mp4toannexb_flush
,
.
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