diff options
author | Giorgio Vazzana <mywing81@gmail.com> | 2014-10-16 11:10:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-24 13:25:40 +0200 |
commit | 00a452a9adea0ffb47de4b0a2a6eec1db2bf842f (patch) | |
tree | de439a2f0d3cd28cfd7460e5caeebb3a9de7fcd9 /libavdevice | |
parent | 8e985b727181786ee5536b61790c8bfbaf43c271 (diff) | |
download | ffmpeg-00a452a9adea0ffb47de4b0a2a6eec1db2bf842f.tar.gz |
lavd/v4l2: print buffer flags in case of error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/v4l2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index fba776464b..b0fa7651c2 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -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; } |