[FFmpeg-devel] [PATCH] libavdevice/v4l2.c: av_log DEBUG cast

Luca Abeni lucabe72
Tue Feb 10 20:24:34 CET 2009

Luca Abeni wrote:
> Hi,
> Patrik Kullman wrote:
>> (long unsigned int) standard.id in av_log debug message
>> Prevents warning about wrong type in formatting.
> which kind of warning are you seeing?
> According to the documentation, id should be a __u64,

Looks like the correct patch is changing "PRIu64" in Lu (linux's __u64 
is not uint64_t...)

Something like the following (warning: might have some witespace damage):
Index: libavdevice/v4l2.c
--- libavdevice/v4l2.c  (revision 17020)
+++ libavdevice/v4l2.c  (working copy)
@@ -494,7 +494,7 @@

-        av_log(s1, AV_LOG_DEBUG, "The V4L2 driver set standard: %s, id: 
+        av_log(s1, AV_LOG_DEBUG, "The V4L2 driver set standard: %s, id: 
                 ap->standard, standard.id);
          if (ioctl(s->fd, VIDIOC_S_STD, &standard.id) < 0) {
              av_log(s1, AV_LOG_ERROR, "The V4L2 driver ioctl set 
standard(%s) failed\n",

Does this work for you?
If yes, I'll commit tomorrow.


More information about the ffmpeg-devel mailing list