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
92c29914
Commit
92c29914
authored
Jul 09, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/hevc_sei: factor return 1 out of if/else chain
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
efc66d69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
hevc_sei.c
libavcodec/hevc_sei.c
+1
-6
No files found.
libavcodec/hevc_sei.c
View file @
92c29914
...
...
@@ -160,13 +160,10 @@ static int decode_nal_sei_message(HEVCContext *s)
if
(
s
->
nal_unit_type
==
NAL_SEI_PREFIX
)
{
if
(
payload_type
==
256
/*&& s->decode_checksum_sei*/
)
{
decode_nal_sei_decoded_picture_hash
(
s
);
return
1
;
}
else
if
(
payload_type
==
45
)
{
decode_nal_sei_frame_packing_arrangement
(
s
);
return
1
;
}
else
if
(
payload_type
==
47
)
{
decode_nal_sei_display_orientation
(
s
);
return
1
;
}
else
if
(
payload_type
==
1
){
int
ret
=
decode_pic_timing
(
s
);
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Skipped PREFIX SEI %d
\n
"
,
payload_type
);
...
...
@@ -175,11 +172,9 @@ static int decode_nal_sei_message(HEVCContext *s)
}
else
if
(
payload_type
==
129
){
active_parameter_sets
(
s
);
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Skipped PREFIX SEI %d
\n
"
,
payload_type
);
return
1
;
}
else
{
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Skipped PREFIX SEI %d
\n
"
,
payload_type
);
skip_bits
(
gb
,
8
*
payload_size
);
return
1
;
}
}
else
{
/* nal_unit_type == NAL_SEI_SUFFIX */
if
(
payload_type
==
132
/* && s->decode_checksum_sei */
)
...
...
@@ -188,8 +183,8 @@ static int decode_nal_sei_message(HEVCContext *s)
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Skipped SUFFIX SEI %d
\n
"
,
payload_type
);
skip_bits
(
gb
,
8
*
payload_size
);
}
return
1
;
}
return
1
;
}
static
int
more_rbsp_data
(
GetBitContext
*
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