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
361c4cdc
Commit
361c4cdc
authored
Mar 21, 2012
by
gs_gail
Committed by
Michael Niedermayer
Mar 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_mp4toannexb_bsf: support 24bit lengths
parent
2a4f1d38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
h264_mp4toannexb_bsf.c
libavcodec/h264_mp4toannexb_bsf.c
+2
-8
No files found.
libavcodec/h264_mp4toannexb_bsf.c
View file @
361c4cdc
...
...
@@ -82,8 +82,6 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
/* retrieve length coded size */
ctx
->
length_size
=
(
*
extradata
++
&
0x3
)
+
1
;
if
(
ctx
->
length_size
==
3
)
return
AVERROR
(
EINVAL
);
/* retrieve sps and pps unit(s) */
unit_nb
=
*
extradata
++
&
0x1f
;
/* number of sps unit(s) */
...
...
@@ -142,12 +140,8 @@ pps:
if
(
buf
+
ctx
->
length_size
>
buf_end
)
goto
fail
;
if
(
ctx
->
length_size
==
1
)
{
nal_size
=
buf
[
0
];
}
else
if
(
ctx
->
length_size
==
2
)
{
nal_size
=
AV_RB16
(
buf
);
}
else
nal_size
=
AV_RB32
(
buf
);
for
(
nal_size
=
0
,
unit_type
=
0
;
unit_type
<
ctx
->
length_size
;
unit_type
++
)
nal_size
=
(
nal_size
<<
8
)
|
buf
[
unit_type
];
buf
+=
ctx
->
length_size
;
unit_type
=
*
buf
&
0x1f
;
...
...
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