Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
libplacebo
Commits
50b797e9
Commit
50b797e9
authored
Mar 09, 2021
by
Niklas Haas
Browse files
utils/libav: fix crash on bayer formats
Just need to add another exclude for these.
parent
b1dd236c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/include/libplacebo/utils/libav_internal.h
View file @
50b797e9
...
...
@@ -264,6 +264,12 @@ static inline int pl_plane_data_from_pixfmt(struct pl_plane_data out_data[4],
return
0
;
}
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG_BAYER
)
{
// Bayer format don't have valid `desc->offset` values, so we can't
// use `pl_plane_data_from_mask` on them.
return
0
;
}
if
(
desc
->
nb_components
==
0
||
desc
->
nb_components
>
4
)
{
// Bogus components, possibly fake/virtual/hwaccel format?
return
0
;
...
...
Write
Preview
Supports
Markdown
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