Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sixue.cheng
ffmpeg-7.1
Commits
781efd07
Commit
781efd07
authored
9 years ago
by
Arthur Grant
Committed by
Michael Niedermayer
9 years ago
Browse files
Options
Download
Email Patches
Plain Diff
avformat/hevc: Fix parsing errors
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
fd2977d8
master
n7.1-dev
n7.0.2
n7.0.1
n7.0
n6.2-dev
n6.1.2
n6.1.1
n6.1
n6.1-dev
n6.0.1
n6.0
n5.2-dev
n5.1.6
n5.1.5
n5.1.4
n5.1.3
n5.1.2
n5.1.1
n5.1
n5.1-dev
n5.0.3
n5.0.2
n5.0.1
n5.0
n4.5-dev
n4.4.5
n4.4.4
n4.4.3
n4.4.2
n4.4.1
n4.4
n4.4-dev
n4.3.8
n4.3.7
n4.3.6
n4.3.5
n4.3.4
n4.3.3
n4.3.2
n4.3.1
n4.3
n4.3-dev
n4.2.10
n4.2.9
n4.2.8
n4.2.7
n4.2.6
n4.2.5
n4.2.4
n4.2.3
n4.2.2
n4.2.1
n4.2
n4.2-dev
n4.1.11
n4.1.10
n4.1.9
n4.1.8
n4.1.7
n4.1.6
n4.1.5
n4.1.4
n4.1.3
n4.1.2
n4.1.1
n4.1
n4.1-dev
n4.0.6
n4.0.5
n4.0.4
n4.0.3
n4.0.2
n4.0.1
n4.0
n3.5-dev
n3.4.13
n3.4.12
n3.4.11
n3.4.10
n3.4.9
n3.4.8
n3.4.7
n3.4.6
n3.4.5
n3.4.4
n3.4.3
n3.4.2
n3.4.1
n3.4
n3.4-dev
n3.3.9
n3.3.8
n3.3.7
n3.3.6
n3.3.5
n3.3.4
n3.3.3
n3.3.2
n3.3.1
n3.3
n3.3-dev
n3.2.19
n3.2.18
n3.2.17
n3.2.16
n3.2.15
n3.2.14
n3.2.13
n3.2.12
n3.2.11
n3.2.10
n3.2.9
n3.2.8
n3.2.7
n3.2.6
n3.2.5
n3.2.4
n3.2.3
n3.2.2
n3.2.1
n3.2
n3.2-dev
n3.1.11
n3.1.10
n3.1.9
n3.1.8
n3.1.7
n3.1.6
n3.1.5
n3.1.4
n3.1.3
n3.1.2
n3.1.1
n3.1
n3.1-dev
n3.0.12
n3.0.11
n3.0.10
n3.0.9
n3.0.8
n3.0.7
n3.0.6
n3.0.5
n3.0.4
n3.0.3
n3.0.2
n3.0.1
n3.0
n2.9-dev
n2.8.22
n2.8.21
n2.8.20
n2.8.19
n2.8.18
n2.8.17
n2.8.16
n2.8.15
n2.8.14
n2.8.13
n2.8.12
n2.8.11
n2.8.10
n2.8.9
n2.8.8
n2.8.7
n2.8.6
n2.8.5
n2.8.4
n2.8.3
n2.8.2
n2.8.1
n2.8
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavformat/hevc.c
+4
-2
libavformat/hevc.c
with
4 additions
and
2 deletions
+4
-2
libavformat/hevc.c
+
4
-
2
View file @
781efd07
...
...
@@ -565,7 +565,8 @@ static int hvcc_parse_sps(GetBitContext *gb,
}
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
);
skip_bits
(
gb
,
len
);
// lt_ref_pic_poc_lsb_sps[i]
skip_bits1
(
gb
);
// used_by_curr_pic_lt_sps_flag[i]
...
...
@@ -616,11 +617,12 @@ static int hvcc_parse_pps(GetBitContext *gb,
get_se_golomb_long
(
gb
);
// pps_cr_qp_offset
/*
* pps_slice_chroma_qp_offsets_present_flag u(1)
* weighted_pred_flag u(1)
* weighted_bipred_flag u(1)
* transquant_bypass_enabled_flag u(1)
*/
skip_bits
(
gb
,
3
);
skip_bits
(
gb
,
4
);
tiles_enabled_flag
=
get_bits1
(
gb
);
entropy_coding_sync_enabled_flag
=
get_bits1
(
gb
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help