mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
FS-9266 #resolve
This commit is contained in:
@@ -720,7 +720,7 @@ static switch_status_t video_thread_callback(switch_core_session_t *session, swi
|
||||
switch_assert(context->rawImage->width * 3 == context->rawImage->widthStep);
|
||||
}
|
||||
|
||||
switch_img_to_raw(frame->img, context->rawImage->imageData, context->rawImage->widthStep * context->h, SWITCH_IMG_FMT_RGB24);
|
||||
switch_img_to_raw(frame->img, context->rawImage->imageData, context->rawImage->widthStep, SWITCH_IMG_FMT_RGB24);
|
||||
detectAndDraw(context);
|
||||
|
||||
if (context->detected.simo_count > 20) {
|
||||
|
||||
@@ -1659,7 +1659,7 @@ int vlc_write_video_imem_get_callback(void *data, const char *cookie, int64_t *
|
||||
}
|
||||
|
||||
*output = context->video_frame_buffer;
|
||||
switch_img_to_raw(img, *output, *size, SWITCH_IMG_FMT_YUY2);
|
||||
switch_img_to_raw(img, *output, 0, SWITCH_IMG_FMT_YUY2);
|
||||
switch_img_free(&img);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user