FS-11055: [mod_av] resize image to recording image size if it does not match recording size

This commit is contained in:
Mike Jerris 2018-04-09 12:30:30 -04:00 committed by Muteesa Fred
parent daf02e96f5
commit 727df6be1b
1 changed files with 3 additions and 3 deletions

View File

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