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
6679d5f2
Commit
6679d5f2
authored
May 13, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/hevc: Simplify entry_point_offset parsing
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1c6ae98d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
hevc.c
libavcodec/hevc.c
+1
-11
No files found.
libavcodec/hevc.c
View file @
6679d5f2
...
...
@@ -717,8 +717,6 @@ static int hls_slice_header(HEVCContext *s)
sh
->
num_entry_point_offsets
=
num_entry_point_offsets
;
if
(
sh
->
num_entry_point_offsets
>
0
)
{
int
offset_len
=
get_ue_golomb_long
(
gb
)
+
1
;
int
segments
=
offset_len
>>
4
;
int
rest
=
(
offset_len
&
15
);
if
(
offset_len
<
1
||
offset_len
>
32
)
{
sh
->
num_entry_point_offsets
=
0
;
...
...
@@ -738,15 +736,7 @@ static int hls_slice_header(HEVCContext *s)
return
AVERROR
(
ENOMEM
);
}
for
(
i
=
0
;
i
<
sh
->
num_entry_point_offsets
;
i
++
)
{
int
val
=
0
;
for
(
j
=
0
;
j
<
segments
;
j
++
)
{
val
<<=
16
;
val
+=
get_bits
(
gb
,
16
);
}
if
(
rest
)
{
val
<<=
rest
;
val
+=
get_bits
(
gb
,
rest
);
}
unsigned
val
=
get_bits_long
(
gb
,
offset_len
);
sh
->
entry_point_offset
[
i
]
=
val
+
1
;
// +1; // +1 to get the size
}
if
(
s
->
threads_number
>
1
&&
(
s
->
pps
->
num_tile_rows
>
1
||
s
->
pps
->
num_tile_columns
>
1
))
{
...
...
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