Align output width to 16 byte alignment
The 444->420 conversion function will crash if you don't align the output width to a 16 byte boundry.
This commit is contained in:
parent
c38a10dac5
commit
0a9440afdf
@ -129,6 +129,9 @@ static bool obs_init_video(struct obs_video_info *ovi)
|
||||
struct video_output_info vi;
|
||||
int errorcode;
|
||||
|
||||
ovi.output_width &= 0xFFFFFFFC;
|
||||
ovi.output_height &= 0xFFFFFFFE;
|
||||
|
||||
make_video_info(&vi, ovi);
|
||||
errorcode = video_output_open(&video->video, &vi);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user