153
150
fbdev->width = fbdev->varinfo.xres;
155
152
fbdev->bytes_per_pixel = (fbdev->varinfo.bits_per_pixel + 7) >> 3;
156
153
fbdev->frame_linesize = fbdev->width * fbdev->bytes_per_pixel;
158
155
fbdev->time_frame = AV_NOPTS_VALUE;
159
156
fbdev->data = mmap(NULL, fbdev->fixinfo.smem_len, PROT_READ, MAP_SHARED, fbdev->fd, 0);
160
157
if (fbdev->data == MAP_FAILED) {