Get rid of v4l2_buffer/v4l2_plane from buffer_t

This commit is contained in:
Kamil Trzcinski
2022-04-10 10:37:52 +02:00
parent e77f0438f1
commit 4d01c86398
9 changed files with 132 additions and 90 deletions

View File

@ -53,7 +53,7 @@ bool h264_is_key_frame(buffer_t *buf)
unsigned char *data = buf->start;
device_t *camera = buf->buf_list->device;
if (buf->v4l2_buffer.flags & V4L2_BUF_FLAG_KEYFRAME) {
if (buf->v4l2.flags & V4L2_BUF_FLAG_KEYFRAME) {
E_LOG_DEBUG(buf, "Got key frame (from V4L2)!");
return true;
} else if (buf->used >= 5 && (data[4] & 0x1F) == 0x07) {