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
2ea00e35
Commit
2ea00e35
authored
Jan 27, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: do not abuse the context as a temporary storage in get_last_needed_nal()
Use a local variable instead.
parent
404a416d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
h264.c
libavcodec/h264.c
+3
-2
No files found.
libavcodec/h264.c
View file @
2ea00e35
...
...
@@ -1372,6 +1372,7 @@ static int get_last_needed_nal(H264Context *h, const uint8_t *buf, int buf_size)
int
nals_needed
=
0
;
while
(
1
)
{
GetBitContext
gb
;
int
nalsize
=
0
;
int
dst_length
,
bit_length
,
consumed
;
const
uint8_t
*
ptr
;
...
...
@@ -1411,8 +1412,8 @@ static int get_last_needed_nal(H264Context *h, const uint8_t *buf, int buf_size)
case
NAL_DPA
:
case
NAL_IDR_SLICE
:
case
NAL_SLICE
:
init_get_bits
(
&
h
->
gb
,
ptr
,
bit_length
);
if
(
!
get_ue_golomb
(
&
h
->
gb
))
init_get_bits
(
&
gb
,
ptr
,
bit_length
);
if
(
!
get_ue_golomb
(
&
gb
))
nals_needed
=
nal_index
;
}
}
...
...
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