···5555static void
5656complain_if_wrong_image_size(struct xrt_frame *xf)
5757{
5858+ // libx264 is the actual source of this requirement; it refuses to handle odd widths/heights when encoding I420
5959+ // subsampled content. OpenH264 should work, but it's easy enough to just force all users of this code to
6060+ // provide normal-sized inputs.
5861 if (xf->width % 2 == 1) {
5962 U_LOG_W("Image width needs to be divisible by 2!");
6063 }