1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00
mpv/waftools/fragments/pvr.c
wm4 0d916c7f96 build: removed undefined behavior from PVR check
This shouldn't matter, but it's probably better if the code to check is
valid - otherwise an extremely clever compiler might fail to compile it,
and the feature would be misdetected. (Probably.)

Found by cppcheck.
2014-05-11 16:41:02 +02:00

8 lines
139 B
C

#include <sys/time.h>
#include <linux/videodev2.h>
int main(void)
{
struct v4l2_ext_controls ext;
return !!&ext.controls->value;
}