Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
004e67b4
Commit
004e67b4
authored
Jun 04, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed/workaround a segfault with (newer?) swscale version.
Initialize the alpha plane pointers even when not used !
parent
f6dba4e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/video_filter/swscale.c
modules/video_filter/swscale.c
+4
-4
No files found.
modules/video_filter/swscale.c
View file @
004e67b4
...
...
@@ -441,7 +441,7 @@ static void Clean( filter_t *p_filter )
p_sys
->
p_dst_e
=
NULL
;
}
static
void
GetPixels
(
uint8_t
*
pp_pixel
[
3
],
int
pi_pitch
[
3
],
static
void
GetPixels
(
uint8_t
*
pp_pixel
[
4
],
int
pi_pitch
[
4
],
const
picture_t
*
p_picture
,
int
i_plane_start
,
int
i_plane_count
)
{
...
...
@@ -451,7 +451,7 @@ static void GetPixels( uint8_t *pp_pixel[3], int pi_pitch[3],
pp_pixel
[
n
]
=
p_picture
->
p
[
i_plane_start
+
n
].
p_pixels
;
pi_pitch
[
n
]
=
p_picture
->
p
[
i_plane_start
+
n
].
i_pitch
;
}
for
(
;
n
<
3
;
n
++
)
for
(
;
n
<
4
;
n
++
)
{
pp_pixel
[
n
]
=
NULL
;
pi_pitch
[
n
]
=
0
;
...
...
@@ -504,8 +504,8 @@ static void Convert( filter_t *p_filter, struct SwsContext *ctx,
{
uint8_t
palette
[
AVPALETTE_SIZE
];
uint8_t
*
src
[
3
];
int
src_stride
[
3
];
uint8_t
*
dst
[
3
];
int
dst_stride
[
3
];
uint8_t
*
src
[
4
];
int
src_stride
[
4
];
uint8_t
*
dst
[
4
];
int
dst_stride
[
4
];
GetPixels
(
src
,
src_stride
,
p_src
,
i_plane_start
,
i_plane_count
);
if
(
p_filter
->
fmt_in
.
video
.
i_chroma
==
VLC_CODEC_RGBP
)
...
...
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