Commit 50b797e9 authored by Niklas Haas's avatar Niklas Haas
Browse files

utils/libav: fix crash on bayer formats

Just need to add another exclude for these.
parent b1dd236c
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment