kmsgrab: Fix build failure with old libdrm
authorJun Zhao <jun.zhao@intel.com>
Thu, 14 Sep 2017 00:21:38 +0000 (20:21 -0400)
committerMark Thompson <sw@jkqxz.net>
Thu, 14 Sep 2017 21:40:09 +0000 (22:40 +0100)
commit462568185b0af4d651441ae397cc83bdb7e573ed
treecc255fb0f12aa805d9d03415ced37d2764c419a8
parent133002e8ae51078709d626ffa2eff9ec8779bd80
kmsgrab: Fix build failure with old libdrm

DRM_FORMAT_R8 was added in libdrm 2.4.68.
DRM_FORMAT_R16 was added in libdrm 2.4.82.

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
libavdevice/kmsgrab.c