]> git.sesse.net Git - ffmpeg/commitdiff
lavd/v4l2: print buffer flags in case of error
authorGiorgio Vazzana <mywing81@gmail.com>
Thu, 16 Oct 2014 09:10:03 +0000 (11:10 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 24 Apr 2015 11:25:40 +0000 (13:25 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/v4l2.c

index fba776464b448a2ec312920b6118049da70aa4bc..b0fa7651c2f5a2785f455f7648ef8d7f002ea5d4 100644 (file)
@@ -528,8 +528,8 @@ static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt)
 
     if (s->frame_size > 0 && buf.bytesused != s->frame_size) {
         av_log(ctx, AV_LOG_ERROR,
-               "The v4l2 frame is %d bytes, but %d bytes are expected\n",
-               buf.bytesused, s->frame_size);
+               "The v4l2 frame is %d bytes, but %d bytes are expected. Flags: 0x%08X\n",
+               buf.bytesused, s->frame_size, buf.flags);
         enqueue_buffer(s, &buf);
         return AVERROR_INVALIDDATA;
     }