Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ac811ffb
Commit
ac811ffb
authored
Oct 15, 2002
by
Laurent Aimar
Browse files
* cinepak.c : initialize picture to black.
parent
706297b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/cinepak/cinepak.c
View file @
ac811ffb
...
...
@@ -2,7 +2,7 @@
* cinepak.c: cinepak video decoder
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: cinepak.c,v 1.
3
2002/0
8
/1
2
0
9:34:15 sam
Exp $
* $Id: cinepak.c,v 1.
4
2002/
1
0/1
5
0
1:50:24 fenrir
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -526,6 +526,9 @@ int cinepak_decode_frame( cinepak_context_t *p_context,
{
p_context
->
p_pix
[
i
]
=
malloc
(
p_context
->
i_stride
[
i
]
*
p_context
->
i_lines
[
i
]
);
/* Set it to all black */
memset
(
p_context
->
p_pix
[
i
],
(
i
==
0
)
?
0
:
128
,
p_context
->
i_stride
[
i
]
*
p_context
->
i_lines
[
i
]
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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