]> git.sesse.net Git - ffmpeg/commit
kmsgrab: Use invalid modifier if modifiers weren't used.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 13 Nov 2020 23:15:46 +0000 (00:15 +0100)
committerMark Thompson <sw@jkqxz.net>
Wed, 13 Jan 2021 23:07:36 +0000 (23:07 +0000)
commit03f4b203ba0ec58fc5c1ef8ee1fe740b8fcab9ab
tree964d4328c677356756be6b0e40a268dce94f4082
parent06a8596825e069a2e26810be40871e7d98a00f67
kmsgrab: Use invalid modifier if modifiers weren't used.

The kernel defaults to initializing the field to 0 when modifiers
are not used and this happens to be linear. If we end up actually
passing the modifier to a driver, tiling issues happen.

So if the kernel doesn't return a modifier set it explicitly to
INVALID. That way later processing knows there is no explicit
modifier.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
libavdevice/kmsgrab.c