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
9d4cb45d
Commit
9d4cb45d
authored
Apr 08, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup 'Fix spurious warning when stream has SPS and PPS units.'
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d0df2934
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
h264_mp4toannexb_bsf.c
libavcodec/h264_mp4toannexb_bsf.c
+2
-6
No files found.
libavcodec/h264_mp4toannexb_bsf.c
View file @
9d4cb45d
...
...
@@ -87,11 +87,7 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
/* retrieve sps and pps unit(s) */
unit_nb
=
*
extradata
++
&
0x1f
;
/* number of sps unit(s) */
if
(
!
unit_nb
)
{
unit_nb
=
*
extradata
++
;
/* number of pps unit(s) */
sps_done
++
;
if
(
unit_nb
)
pps_seen
=
1
;
goto
pps
;
}
else
{
sps_seen
=
1
;
}
...
...
@@ -115,7 +111,7 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
memcpy
(
out
+
total_size
-
unit_size
-
4
,
nalu_header
,
4
);
memcpy
(
out
+
total_size
-
unit_size
,
extradata
+
2
,
unit_size
);
extradata
+=
2
+
unit_size
;
pps:
if
(
!
unit_nb
&&
!
sps_done
++
)
{
unit_nb
=
*
extradata
++
;
/* number of pps unit(s) */
if
(
unit_nb
)
...
...
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