提交 2bad453f authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-10131: [freeswitch-core] Incorrect video decode flags in some places

上级 34c48368
......@@ -2404,7 +2404,7 @@ static switch_status_t av_file_read_video(switch_file_handle_t *handle, switch_f
if (frame->img) {
if (frame->img && context->handle->mm.scale_w && context->handle->mm.scale_h) {
if (frame->img->d_w != context->handle->mm.scale_w || frame->img->d_h != context->handle->mm.scale_h) {
switch_img_fit(&frame->img, context->handle->mm.scale_w, context->handle->mm.scale_h, SWITCH_FIT_SIZE);
switch_img_fit(&frame->img, context->handle->mm.scale_w, context->handle->mm.scale_h, SWITCH_FIT_SCALE);
}
}
context->vid_ready = 1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论