We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a99da8d commit 283b8ccCopy full SHA for 283b8cc
drivers/video/video_common.c
@@ -456,6 +456,11 @@ int video_estimate_fmt_size(struct video_format *fmt)
456
fmt->pitch = 0;
457
fmt->size = fmt->width * fmt->height * 2;
458
break;
459
+ case VIDEO_PIX_FMT_H264:
460
+ /* Rough estimate for the worst case */
461
+ fmt->pitch = 0;
462
+ fmt->size = fmt->width * fmt->height * 2;
463
+ break;
464
default:
465
/* Uncompressed format */
466
fmt->pitch = fmt->width * video_bits_per_pixel(fmt->pixelformat) / BITS_PER_BYTE;
0 commit comments