From 727df6be1b6f7a6eaaa8e1c1da0e081d96e3026b Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Mon, 9 Apr 2018 12:30:30 -0400 Subject: [PATCH] FS-11055: [mod_av] resize image to recording image size if it does not match recording size --- src/mod/applications/mod_av/avformat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }