]> granicus.if.org Git - handbrake/commitdiff
qsv_filter: fix crash when unpacking crop parameters
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 13 Apr 2016 18:39:13 +0000 (12:39 -0600)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 13 Apr 2016 18:40:00 +0000 (12:40 -0600)
libhb/qsv_filter.c

index 3d085815463cb5df360a73e32bcdc897a0b79370..56116fbd249593047c0f8daab88cb8206a811b69 100644 (file)
@@ -355,10 +355,10 @@ static int hb_qsv_filter_init( hb_filter_object_t * filter,
 
     hb_dict_extract_int(&pv->width_out, filter->settings, "width");
     hb_dict_extract_int(&pv->height_out, filter->settings, "height");
-    hb_dict_extract_int(pv->crop[0], filter->settings, "crop-top");
-    hb_dict_extract_int(pv->crop[1], filter->settings, "crop-bottom");
-    hb_dict_extract_int(pv->crop[2], filter->settings, "crop-left");
-    hb_dict_extract_int(pv->crop[3], filter->settings, "crop-right");
+    hb_dict_extract_int(&pv->crop[0], filter->settings, "crop-top");
+    hb_dict_extract_int(&pv->crop[1], filter->settings, "crop-bottom");
+    hb_dict_extract_int(&pv->crop[2], filter->settings, "crop-left");
+    hb_dict_extract_int(&pv->crop[3], filter->settings, "crop-right");
     hb_dict_extract_bool(&pv->deinterlace, filter->settings, "deinterlace");
 
     pv->job = init->job;