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
8c2c9740
Commit
8c2c9740
authored
Apr 03, 2018
by
Simon Thelen
Committed by
Paul B Mahol
Apr 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/imgconvert: fix possible null pointer dereference
regression since
354b26a3
parent
4b736bc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
imgconvert.c
libavcodec/imgconvert.c
+3
-2
No files found.
libavcodec/imgconvert.c
View file @
8c2c9740
...
...
@@ -72,11 +72,12 @@ enum AVPixelFormat avcodec_find_best_pix_fmt_of_list(const enum AVPixelFormat *p
int
loss
;
for
(
i
=
0
;
pix_fmt_list
[
i
]
!=
AV_PIX_FMT_NONE
;
i
++
)
{
loss
=
*
loss_ptr
;
loss
=
loss_ptr
?
*
loss_ptr
:
0
;
best
=
avcodec_find_best_pix_fmt_of_2
(
best
,
pix_fmt_list
[
i
],
src_pix_fmt
,
has_alpha
,
&
loss
);
}
*
loss_ptr
=
loss
;
if
(
loss_ptr
)
*
loss_ptr
=
loss
;
return
best
;
}
...
...
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