From: Mike Jerris Date: Mon, 9 Apr 2018 16:30:30 +0000 (-0400) Subject: FS-11055: [mod_av] resize image to recording image size if it does not match recordin... X-Git-Tag: v1.8.1~3^2~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=727df6be1b6f7a6eaaa8e1c1da0e081d96e3026b;p=thirdparty%2Ffreeswitch.git FS-11055: [mod_av] resize image to recording image size if it does not match recording size --- diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c index 4d9929ea05..7443183891 100644 --- a/src/mod/applications/mod_av/avformat.c +++ b/src/mod/applications/mod_av/avformat.c @@ -775,10 +775,10 @@ static void *SWITCH_THREAD_FUNC video_thread_run(switch_thread_t *thread, void * if (!d_w) d_w = img->d_w; if (!d_h) d_h = img->d_h; - //if (d_w && d_h && (d_w != img->d_w || d_h != img->d_h)) { + if (d_w && d_h && (d_w != img->d_w || d_h != img->d_h)) { /* scale to match established stream */ - // switch_img_fit(&img, d_w, d_h, SWITCH_FIT_SIZE); - //} + switch_img_fit(&img, d_w, d_h, SWITCH_FIT_SIZE); + } } else { continue; }