0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

Merge pull request #1876 from jpark37/clang-warning-fix

libobs: Restore casts to fix Clang warnings
This commit is contained in:
Jim 2019-05-09 23:34:53 -07:00 committed by GitHub
commit cac6897ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1687,11 +1687,13 @@ bool update_async_texture(struct obs_source *source,
return false;
if (type == CONVERT_420)
decompress_420(frame->data, frame->linesize,
decompress_420((const uint8_t* const*)frame->data,
frame->linesize,
0, frame->height, ptr, linesize);
else if (type == CONVERT_NV12)
decompress_nv12(frame->data, frame->linesize,
decompress_nv12((const uint8_t* const*)frame->data,
frame->linesize,
0, frame->height, ptr, linesize);
else if (type == CONVERT_422_Y)