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
308d3ed5
Commit
308d3ed5
authored
Mar 28, 2016
by
Matthieu Bouron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/mediacodec: use ternary operator to set slice-height value
parent
8f2a1990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
mediacodecdec.c
libavcodec/mediacodecdec.c
+1
-5
No files found.
libavcodec/mediacodecdec.c
View file @
308d3ed5
...
...
@@ -255,11 +255,7 @@ static int mediacodec_dec_parse_format(AVCodecContext *avctx, MediaCodecDecConte
av_freep
(
&
format
);
return
AVERROR_EXTERNAL
;
}
if
(
value
>
0
)
{
s
->
slice_height
=
value
;
}
else
{
s
->
slice_height
=
s
->
height
;
}
s
->
slice_height
=
value
>
0
?
value
:
s
->
height
;
if
(
strstr
(
s
->
codec_name
,
"OMX.Nvidia."
))
{
s
->
slice_height
=
FFALIGN
(
s
->
height
,
16
);
...
...
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