Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e90491c3
Commit
e90491c3
authored
Jun 20, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avcodec: Fix potential dereference before null check
See CID #1223114
parent
083b686c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+2
-3
No files found.
modules/codec/avcodec/video.c
View file @
e90491c3
...
...
@@ -855,12 +855,11 @@ static void ffmpeg_CopyPicture( decoder_t *p_dec,
if
(
p_sys
->
p_context
->
pix_fmt
==
PIX_FMT_PAL8
)
{
if
(
!
p_pic
->
format
.
p_palette
)
{
p_pic
->
format
.
p_palette
=
calloc
(
1
,
sizeof
(
video_palette_t
)
);
p_pic
->
format
.
p_palette
->
i_entries
=
256
;
}
if
(
p_pic
->
format
.
p_palette
)
{
p_pic
->
format
.
p_palette
->
i_entries
=
AVPALETTE_COUNT
;
memcpy
(
p_pic
->
format
.
p_palette
->
palette
,
p_ff_pic
->
data
[
1
],
AVPALETTE_SIZE
);
}
}
...
...
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