diff --git a/src/mod/applications/mod_cv/mod_cv.cpp b/src/mod/applications/mod_cv/mod_cv.cpp index f4b03691a4..46a33799e3 100644 --- a/src/mod/applications/mod_cv/mod_cv.cpp +++ b/src/mod/applications/mod_cv/mod_cv.cpp @@ -661,8 +661,8 @@ static switch_status_t video_thread_callback(switch_core_session_t *session, swi } } - int w = context->rawImage->width; - int h = context->rawImage->height; + int w = frame->img->d_w;//context->rawImage->width; + int h = frame->img->d_h;//context->rawImage->height; if (context->debug || !context->overlay_count) { libyuv::RGB24ToI420((uint8_t *)context->rawImage->imageData, w * 3,