Skip to content
Snippets Groups Projects
Commit 00a452a9 authored by Giorgio Vazzana's avatar Giorgio Vazzana Committed by Michael Niedermayer
Browse files

lavd/v4l2: print buffer flags in case of error

parent 8e985b72
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment