]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10131: [freeswitch-core] Incorrect video decode flags in some places
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 14 Mar 2017 22:18:00 +0000 (17:18 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 15 Mar 2017 00:00:17 +0000 (19:00 -0500)
src/mod/applications/mod_av/avformat.c

index 725c59fb5c566c277c41eea56372f8d20410efb1..9a28570da56d470e9781672f2f6b223b92bd155f 100644 (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;