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
54b425a7
Commit
54b425a7
authored
Jul 02, 2018
by
Pedro Arthur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavfilter: vf_sr.c remove warnings
parent
575b7189
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vf_sr.c
libavfilter/vf_sr.c
+3
-3
No files found.
libavfilter/vf_sr.c
View file @
54b425a7
...
...
@@ -268,7 +268,7 @@ static int filter_frame(AVFilterLink* inlink, AVFrame* in)
out
->
width
=
sr_context
->
output
.
width
;
switch
(
sr_context
->
model_type
){
case
SRCNN
:
sws_scale
(
sr_context
->
sws_context
,
in
->
data
,
in
->
linesize
,
sws_scale
(
sr_context
->
sws_context
,
(
const
uint8_t
**
)
in
->
data
,
in
->
linesize
,
0
,
sr_context
->
sws_slice_h
,
out
->
data
,
out
->
linesize
);
td
.
data
=
out
->
data
[
0
];
td
.
data_linesize
=
out
->
linesize
[
0
];
...
...
@@ -277,9 +277,9 @@ static int filter_frame(AVFilterLink* inlink, AVFrame* in)
break
;
case
ESPCN
:
if
(
sr_context
->
sws_context
){
sws_scale
(
sr_context
->
sws_context
,
in
->
data
+
1
,
in
->
linesize
+
1
,
sws_scale
(
sr_context
->
sws_context
,
(
const
uint8_t
**
)(
in
->
data
+
1
)
,
in
->
linesize
+
1
,
0
,
sr_context
->
sws_slice_h
,
out
->
data
+
1
,
out
->
linesize
+
1
);
sws_scale
(
sr_context
->
sws_context
,
in
->
data
+
2
,
in
->
linesize
+
2
,
sws_scale
(
sr_context
->
sws_context
,
(
const
uint8_t
**
)(
in
->
data
+
2
)
,
in
->
linesize
+
2
,
0
,
sr_context
->
sws_slice_h
,
out
->
data
+
2
,
out
->
linesize
+
2
);
}
td
.
data
=
in
->
data
[
0
];
...
...
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