在 #include <linux/videodev2.h> 后编译会报一个错:
field ‘timestamp’ has incomplete type
struct timespec timestamp; 2225
解决方法是在
#include <linux/videodev2.h>
之前加两行:
#include <bits/types/struct_timespec.h>
#include <bits/types/struct_timeval.h>
#include <linux/videodev2.h>