History

lavd/v4l2: print buffer flags in case of error

Giorgio Vazzana committed 12 years ago

Commit 00a452a1 parent 8e985b71 file · +2 −2Browse files

Showing the changes to libavdevice (1 of 1 file). Show all

Unified · Split

libavdevice/v4l2.c+2−2
@@ -528,8 +528,8 @@ static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt) · 527 unmodified lines
528 528
529 if (s->frame_size > 0 && buf.bytesused != s->frame_size) {529 if (s->frame_size > 0 && buf.bytesused != s->frame_size) {
530 av_log(ctx, AV_LOG_ERROR,530 av_log(ctx, AV_LOG_ERROR,
531 "The v4l2 frame is %d bytes, but %d bytes are expected\n",531 "The v4l2 frame is %d bytes, but %d bytes are expected. Flags: 0x%08X\n",
532 buf.bytesused, s->frame_size);532 buf.bytesused, s->frame_size, buf.flags);
533 enqueue_buffer(s, &buf);533 enqueue_buffer(s, &buf);
534 return AVERROR_INVALIDDATA;534 return AVERROR_INVALIDDATA;
535 }535 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t