diff --git a/app/streaming/video/ffmpeg-renderers/eglimagefactory.cpp b/app/streaming/video/ffmpeg-renderers/eglimagefactory.cpp index 22c742c5..a6efa9d3 100644 --- a/app/streaming/video/ffmpeg-renderers/eglimagefactory.cpp +++ b/app/streaming/video/ffmpeg-renderers/eglimagefactory.cpp @@ -254,7 +254,7 @@ ssize_t EglImageFactory::exportVAImages(AVFrame *frame, VADRMPRIMESurfaceDescrip // Max 33 attributes (1 key + 1 value for each) const int EGL_ATTRIB_COUNT = 33 * 2; EGLAttrib attribs[EGL_ATTRIB_COUNT] = { - EGL_LINUX_DRM_FOURCC_EXT, layer.drm_format, + EGL_LINUX_DRM_FOURCC_EXT, (EGLAttrib)layer.drm_format, EGL_WIDTH, i == 0 ? frame->width : frame->width / 2, EGL_HEIGHT, i == 0 ? frame->height : frame->height / 2, EGL_IMAGE_PRESERVED_KHR, EGL_TRUE, diff --git a/app/streaming/video/ffmpeg-renderers/vaapi.cpp b/app/streaming/video/ffmpeg-renderers/vaapi.cpp index 7585f027..82448cf8 100644 --- a/app/streaming/video/ffmpeg-renderers/vaapi.cpp +++ b/app/streaming/video/ffmpeg-renderers/vaapi.cpp @@ -973,14 +973,14 @@ VAAPIRenderer::initializeEGL(EGLDisplay dpy, } else if (!m_EglImageFactory.supportsImportingModifier(dpy, descriptor.layers[0].drm_format, descriptor.objects[0].drm_format_modifier)) { SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, - "Exporting separate layers due to lack of support for importing format and modifier: %08x %016lx", + "Exporting separate layers due to lack of support for importing format and modifier: %08x %016" PRIx64, descriptor.layers[0].drm_format, descriptor.objects[0].drm_format_modifier); m_EglExportType = EglExportType::Separate; } else { SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, - "Exporting composed layers with format and modifier: %08x %016lx", + "Exporting composed layers with format and modifier: %08x %016" PRIx64, descriptor.layers[0].drm_format, descriptor.objects[0].drm_format_modifier); m_EglExportType = EglExportType::Composed; @@ -1002,7 +1002,7 @@ VAAPIRenderer::initializeEGL(EGLDisplay dpy, else if (!m_EglImageFactory.supportsImportingModifier(dpy, descriptor.layers[i].drm_format, descriptor.objects[descriptor.layers[i].object_index[0]].drm_format_modifier)) { SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, - "EGL implementation lacks support for importing format and modifier: %08x %016lx", + "EGL implementation lacks support for importing format and modifier: %08x %016" PRIx64, descriptor.layers[i].drm_format, descriptor.objects[descriptor.layers[i].object_index[0]].drm_format_modifier); }