Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
bedb4bac
Commit
bedb4bac
authored
Feb 05, 2022
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_cas: unbreak >8 depth support
parent
306994b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vf_cas.c
libavfilter/vf_cas.c
+4
-4
No files found.
libavfilter/vf_cas.c
View file @
bedb4bac
...
@@ -65,7 +65,7 @@ static int cas_slice8(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs)
...
@@ -65,7 +65,7 @@ static int cas_slice8(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs)
const
uint8_t
*
src
=
in
->
data
[
p
];
const
uint8_t
*
src
=
in
->
data
[
p
];
if
(
!
((
1
<<
p
)
&
s
->
planes
))
{
if
(
!
((
1
<<
p
)
&
s
->
planes
))
{
av_image_copy_plane
(
dst
,
linesize
,
src
+
slice_start
*
linesize
,
in_linesize
,
av_image_copy_plane
(
dst
,
linesize
,
src
+
slice_start
*
in_
linesize
,
in_linesize
,
w
,
slice_end
-
slice_start
);
w
,
slice_end
-
slice_start
);
continue
;
continue
;
}
}
...
@@ -128,12 +128,12 @@ static int cas_slice16(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs
...
@@ -128,12 +128,12 @@ static int cas_slice16(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs
const
int
w1
=
w
-
1
;
const
int
w1
=
w
-
1
;
const
int
h
=
s
->
planeheight
[
p
];
const
int
h
=
s
->
planeheight
[
p
];
const
int
h1
=
h
-
1
;
const
int
h1
=
h
-
1
;
uint16_t
*
dst
=
(
uint16_t
*
)
out
->
data
[
p
]
+
slice_start
*
linesize
;
uint16_t
*
dst
=
(
(
uint16_t
*
)
out
->
data
[
p
])
+
slice_start
*
linesize
;
const
uint16_t
*
src
=
(
const
uint16_t
*
)
in
->
data
[
p
];
const
uint16_t
*
src
=
(
const
uint16_t
*
)
in
->
data
[
p
];
if
(
!
((
1
<<
p
)
&
s
->
planes
))
{
if
(
!
((
1
<<
p
)
&
s
->
planes
))
{
av_image_copy_plane
((
uint8_t
*
)
dst
,
linesize
,
(
uint8_t
*
)(
src
+
slice_start
*
linesize
),
av_image_copy_plane
((
uint8_t
*
)
dst
,
linesize
*
2
,
(
uint8_t
*
)(
src
+
slice_start
*
in_
linesize
),
in_linesize
,
w
*
2
,
slice_end
-
slice_start
);
in_linesize
*
2
,
w
*
2
,
slice_end
-
slice_start
);
continue
;
continue
;
}
}
...
...
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