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

This commit is contained in:
Anthony Minessale 2017-03-14 17:18:00 -05:00
parent 34c48368dc
commit 2bad453f51
1 changed files with 1 additions and 1 deletions

View File

@ -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;