0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

libobs: Fix I40A plane height calculation for fourth plane

The commit 2fc13540 introduced a typo bug causing the defined height of
the fourth plane in I40A to be 0, instead of the original frame height.

This changes a 0 to a 3, in order to populate that value correctly.
This commit is contained in:
tt2468 2024-05-03 21:05:13 -07:00
parent 9fa23c8cca
commit fa482b6b49

View File

@ -170,7 +170,7 @@ void video_frame_get_plane_heights(uint32_t heights[MAX_AV_PLANES],
heights[0] = height;
heights[1] = height / 2;
heights[2] = height / 2;
heights[0] = height;
heights[3] = height;
break;
case VIDEO_FORMAT_I42A: /* four planes: all full height */