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
26482ae7
Commit
26482ae7
authored
May 05, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_sei/decode_picture_timing: do not depend on h->sps being set
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ccdaa31d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
h264_sei.c
libavcodec/h264_sei.c
+13
-6
No files found.
libavcodec/h264_sei.c
View file @
26482ae7
...
...
@@ -45,11 +45,18 @@ void ff_h264_reset_sei(H264Context *h) {
}
static
int
decode_picture_timing
(
H264Context
*
h
){
if
(
h
->
sps
.
nal_hrd_parameters_present_flag
||
h
->
sps
.
vcl_hrd_parameters_present_flag
){
h
->
sei_cpb_removal_delay
=
get_bits_long
(
&
h
->
gb
,
h
->
sps
.
cpb_removal_delay_length
);
h
->
sei_dpb_output_delay
=
get_bits_long
(
&
h
->
gb
,
h
->
sps
.
dpb_output_delay_length
);
SPS
*
sps
=
&
h
->
sps
;
int
i
;
for
(
i
=
0
;
i
<
MAX_SPS_COUNT
;
i
++
)
if
(
!
sps
->
log2_max_frame_num
&&
h
->
sps_buffers
[
i
])
sps
=
h
->
sps_buffers
[
i
];
if
(
sps
->
nal_hrd_parameters_present_flag
||
sps
->
vcl_hrd_parameters_present_flag
){
h
->
sei_cpb_removal_delay
=
get_bits_long
(
&
h
->
gb
,
sps
->
cpb_removal_delay_length
);
h
->
sei_dpb_output_delay
=
get_bits_long
(
&
h
->
gb
,
sps
->
dpb_output_delay_length
);
}
if
(
h
->
sps
.
pic_struct_present_flag
){
if
(
sps
->
pic_struct_present_flag
){
unsigned
int
i
,
num_clock_ts
;
h
->
sei_pic_struct
=
get_bits
(
&
h
->
gb
,
4
);
h
->
sei_ct_type
=
0
;
...
...
@@ -83,8 +90,8 @@ static int decode_picture_timing(H264Context *h){
}
}
}
if
(
h
->
sps
.
time_offset_length
>
0
)
skip_bits
(
&
h
->
gb
,
h
->
sps
.
time_offset_length
);
/* time_offset */
if
(
sps
->
time_offset_length
>
0
)
skip_bits
(
&
h
->
gb
,
sps
->
time_offset_length
);
/* time_offset */
}
}
...
...
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