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
781efd07
Commit
781efd07
authored
Aug 24, 2015
by
Arthur Grant
Committed by
Michael Niedermayer
Aug 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hevc: Fix parsing errors
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
fd2977d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
hevc.c
libavformat/hevc.c
+4
-2
No files found.
libavformat/hevc.c
View file @
781efd07
...
@@ -565,7 +565,8 @@ static int hvcc_parse_sps(GetBitContext *gb,
...
@@ -565,7 +565,8 @@ static int hvcc_parse_sps(GetBitContext *gb,
}
}
if
(
get_bits1
(
gb
))
{
// long_term_ref_pics_present_flag
if
(
get_bits1
(
gb
))
{
// long_term_ref_pics_present_flag
for
(
i
=
0
;
i
<
get_ue_golomb_long
(
gb
);
i
++
)
{
// num_long_term_ref_pics_sps
unsigned
num_long_term_ref_pics_sps
=
get_ue_golomb_long
(
gb
);
for
(
i
=
0
;
i
<
num_long_term_ref_pics_sps
;
i
++
)
{
// num_long_term_ref_pics_sps
int
len
=
FFMIN
(
log2_max_pic_order_cnt_lsb_minus4
+
4
,
16
);
int
len
=
FFMIN
(
log2_max_pic_order_cnt_lsb_minus4
+
4
,
16
);
skip_bits
(
gb
,
len
);
// lt_ref_pic_poc_lsb_sps[i]
skip_bits
(
gb
,
len
);
// lt_ref_pic_poc_lsb_sps[i]
skip_bits1
(
gb
);
// used_by_curr_pic_lt_sps_flag[i]
skip_bits1
(
gb
);
// used_by_curr_pic_lt_sps_flag[i]
...
@@ -616,11 +617,12 @@ static int hvcc_parse_pps(GetBitContext *gb,
...
@@ -616,11 +617,12 @@ static int hvcc_parse_pps(GetBitContext *gb,
get_se_golomb_long
(
gb
);
// pps_cr_qp_offset
get_se_golomb_long
(
gb
);
// pps_cr_qp_offset
/*
/*
* pps_slice_chroma_qp_offsets_present_flag u(1)
* weighted_pred_flag u(1)
* weighted_pred_flag u(1)
* weighted_bipred_flag u(1)
* weighted_bipred_flag u(1)
* transquant_bypass_enabled_flag u(1)
* transquant_bypass_enabled_flag u(1)
*/
*/
skip_bits
(
gb
,
3
);
skip_bits
(
gb
,
4
);
tiles_enabled_flag
=
get_bits1
(
gb
);
tiles_enabled_flag
=
get_bits1
(
gb
);
entropy_coding_sync_enabled_flag
=
get_bits1
(
gb
);
entropy_coding_sync_enabled_flag
=
get_bits1
(
gb
);
...
...
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