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
e38b8b0d
Commit
e38b8b0d
authored
Apr 17, 2017
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264dec: do not return a value from init_dimensions()
There are no failure cases left in this function.
parent
1b17988c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
h264_slice.c
libavcodec/h264_slice.c
+2
-6
No files found.
libavcodec/h264_slice.c
View file @
e38b8b0d
...
...
@@ -864,7 +864,7 @@ static enum AVPixelFormat get_pixel_format(H264Context *h, int force_callback)
}
/* export coded and cropped frame dimensions to AVCodecContext */
static
int
init_dimensions
(
H264Context
*
h
)
static
void
init_dimensions
(
H264Context
*
h
)
{
const
SPS
*
sps
=
(
const
SPS
*
)
h
->
ps
.
sps
;
int
cr
=
sps
->
crop_right
;
...
...
@@ -902,8 +902,6 @@ static int init_dimensions(H264Context *h)
h
->
crop_left
=
cl
;
h
->
crop_top
=
ct
;
h
->
crop_bottom
=
cb
;
return
0
;
}
static
int
h264_slice_header_init
(
H264Context
*
h
)
...
...
@@ -1068,9 +1066,7 @@ static int h264_init_ps(H264Context *h, const H264SliceContext *sl, int first_sl
h
->
width
=
16
*
h
->
mb_width
;
h
->
height
=
16
*
h
->
mb_height
;
ret
=
init_dimensions
(
h
);
if
(
ret
<
0
)
return
ret
;
init_dimensions
(
h
);
if
(
sps
->
video_signal_type_present_flag
)
{
h
->
avctx
->
color_range
=
sps
->
full_range
>
0
?
AVCOL_RANGE_JPEG
...
...
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