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
0c17beba
Commit
0c17beba
authored
Jun 18, 2011
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: drop some ugly casts
parent
dbafb0e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
h264.c
libavcodec/h264.c
+2
-2
No files found.
libavcodec/h264.c
View file @
0c17beba
...
@@ -1014,7 +1014,7 @@ int ff_h264_decode_extradata(H264Context *h)
...
@@ -1014,7 +1014,7 @@ int ff_h264_decode_extradata(H264Context *h)
{
{
AVCodecContext
*
avctx
=
h
->
s
.
avctx
;
AVCodecContext
*
avctx
=
h
->
s
.
avctx
;
if
(
*
(
char
*
)
avctx
->
extradata
==
1
){
if
(
avctx
->
extradata
[
0
]
==
1
){
int
i
,
cnt
,
nalsize
;
int
i
,
cnt
,
nalsize
;
unsigned
char
*
p
=
avctx
->
extradata
;
unsigned
char
*
p
=
avctx
->
extradata
;
...
@@ -1049,7 +1049,7 @@ int ff_h264_decode_extradata(H264Context *h)
...
@@ -1049,7 +1049,7 @@ int ff_h264_decode_extradata(H264Context *h)
p
+=
nalsize
;
p
+=
nalsize
;
}
}
// Now store right nal length size, that will be use to parse all other nals
// Now store right nal length size, that will be use to parse all other nals
h
->
nal_length_size
=
(
(
*
(((
char
*
)(
avctx
->
extradata
))
+
4
))
&
0x03
)
+
1
;
h
->
nal_length_size
=
(
avctx
->
extradata
[
4
]
&
0x03
)
+
1
;
}
else
{
}
else
{
h
->
is_avc
=
0
;
h
->
is_avc
=
0
;
if
(
decode_nal_units
(
h
,
avctx
->
extradata
,
avctx
->
extradata_size
)
<
0
)
if
(
decode_nal_units
(
h
,
avctx
->
extradata
,
avctx
->
extradata_size
)
<
0
)
...
...
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