Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
d6e400f2
Commit
d6e400f2
authored
Sep 03, 2015
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: all 4 planes must be set, even if alpha is dropped
Fixes #15140
parent
3a37abef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
modules/video_chroma/swscale.c
modules/video_chroma/swscale.c
+6
-1
No files found.
modules/video_chroma/swscale.c
View file @
d6e400f2
...
...
@@ -661,8 +661,13 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
else
if
(
p_sys
->
b_copy
)
SwapUV
(
p_dst
,
p_src
);
else
{
/* Even if alpha is unused, swscale expects the pointer to be set */
const
int
n_planes
=
!
p_sys
->
ctxA
&&
(
p_src
->
i_planes
==
4
||
p_dst
->
i_planes
==
4
)
?
4
:
3
;
Convert
(
p_filter
,
p_sys
->
ctx
,
p_dst
,
p_src
,
p_fmti
->
i_visible_height
,
3
,
p_sys
->
b_swap_uvi
,
p_sys
->
b_swap_uvo
);
n_planes
,
p_sys
->
b_swap_uvi
,
p_sys
->
b_swap_uvo
);
}
if
(
p_sys
->
ctxA
)
{
/* We extract the A plane to rescale it, and then we reinject it. */
...
...
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