History

lavd/v4l2: print buffer flags in case of error

Giorgio Vazzana committed 12 years ago

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

Unified · Split

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

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