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
0bfab80a
Commit
0bfab80a
authored
Jun 28, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_sei: Group error check outside the switch block
parent
0a49a62f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
h264_sei.c
libavcodec/h264_sei.c
+2
-12
No files found.
libavcodec/h264_sei.c
View file @
0bfab80a
...
@@ -246,38 +246,28 @@ int ff_h264_decode_sei(H264Context *h)
...
@@ -246,38 +246,28 @@ int ff_h264_decode_sei(H264Context *h)
switch
(
type
)
{
switch
(
type
)
{
case
SEI_TYPE_PIC_TIMING
:
// Picture timing SEI
case
SEI_TYPE_PIC_TIMING
:
// Picture timing SEI
ret
=
decode_picture_timing
(
h
);
ret
=
decode_picture_timing
(
h
);
if
(
ret
<
0
)
return
ret
;
break
;
break
;
case
SEI_TYPE_USER_DATA_UNREGISTERED
:
case
SEI_TYPE_USER_DATA_UNREGISTERED
:
ret
=
decode_unregistered_user_data
(
h
,
size
);
ret
=
decode_unregistered_user_data
(
h
,
size
);
if
(
ret
<
0
)
return
ret
;
break
;
break
;
case
SEI_TYPE_RECOVERY_POINT
:
case
SEI_TYPE_RECOVERY_POINT
:
ret
=
decode_recovery_point
(
h
);
ret
=
decode_recovery_point
(
h
);
if
(
ret
<
0
)
return
ret
;
break
;
break
;
case
SEI_TYPE_BUFFERING_PERIOD
:
case
SEI_TYPE_BUFFERING_PERIOD
:
ret
=
decode_buffering_period
(
h
);
ret
=
decode_buffering_period
(
h
);
if
(
ret
<
0
)
return
ret
;
break
;
break
;
case
SEI_TYPE_FRAME_PACKING
:
case
SEI_TYPE_FRAME_PACKING
:
ret
=
decode_frame_packing_arrangement
(
h
);
ret
=
decode_frame_packing_arrangement
(
h
);
if
(
ret
<
0
)
return
ret
;
break
;
break
;
case
SEI_TYPE_DISPLAY_ORIENTATION
:
case
SEI_TYPE_DISPLAY_ORIENTATION
:
ret
=
decode_display_orientation
(
h
);
ret
=
decode_display_orientation
(
h
);
if
(
ret
<
0
)
return
ret
;
break
;
break
;
default:
default:
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"unknown SEI type %d
\n
"
,
type
);
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"unknown SEI type %d
\n
"
,
type
);
skip_bits
(
&
h
->
gb
,
8
*
size
);
skip_bits
(
&
h
->
gb
,
8
*
size
);
}
}
if
(
ret
<
0
)
return
ret
;
// FIXME check bits here
// FIXME check bits here
align_get_bits
(
&
h
->
gb
);
align_get_bits
(
&
h
->
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