diff options
author | jstebbins <[email protected]> | 2015-01-03 16:03:39 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-01-03 16:03:39 +0000 |
commit | e1301a6a4ece63bf195c3a86976ed29236d7b8c0 (patch) | |
tree | 2797e216dc64dbbfb9098d3b7a44d2d8893a7ea4 | |
parent | 5381c32a099538cc0e63d5393f26c6aa607b5eee (diff) |
libhb: fix access to uninitialized variables in hb_set_anamorphic_size2
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6682 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/common.c b/libhb/common.c index 7f12e5838..50e52734c 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -2998,6 +2998,7 @@ static void job_setup(hb_job_t * job, hb_title_t * title) hb_geometry_t resultGeo, srcGeo; hb_geometry_settings_t uiGeo; + memset(&uiGeo, 0, sizeof(uiGeo)); srcGeo.width = title->geometry.width; srcGeo.height = title->geometry.height; srcGeo.par = title->geometry.par; @@ -3005,9 +3006,8 @@ static void job_setup(hb_job_t * job, hb_title_t * title) uiGeo.geometry.width = job->width; uiGeo.geometry.height = job->height; uiGeo.geometry.par = job->par; - uiGeo.mode = 0; + uiGeo.mode = HB_ANAMORPHIC_NONE; uiGeo.keep = HB_KEEP_DISPLAY_ASPECT; - uiGeo.itu_par = 0; hb_set_anamorphic_size2(&srcGeo, &uiGeo, &resultGeo); job->width = resultGeo.width; |