]> git.sesse.net Git - ffmpeg/commitdiff
v4l2: use V4L2_FMT_FLAG_EMULATED only if it is defined
authorJanne Grunau <janne-libav@jannau.net>
Wed, 4 Jan 2012 19:29:57 +0000 (20:29 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Wed, 4 Jan 2012 20:34:29 +0000 (21:34 +0100)
V4L2_FMT_FLAG_EMULATED was added in 2.6.32.

libavdevice/v4l2.c

index 2895a01824e8e8ea5b5f662d535560870b084fbc..71e5b1159a3add7e445bdcbc111806f050b03e41 100644 (file)
@@ -316,10 +316,12 @@ static void list_formats(AVFormatContext *ctx, int fd, int type)
             continue;
         }
 
+#ifdef V4L2_FMT_FLAG_EMULATED
         if (vfd.flags & V4L2_FMT_FLAG_EMULATED) {
             av_log(ctx, AV_LOG_WARNING, "%s", "Emulated");
             continue;
         }
+#endif
 #if HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE
         list_framesizes(ctx, fd, vfd.pixelformat);
 #endif