]> granicus.if.org Git - handbrake/commitdiff
QSV: don't set the deinterlace setting via a string, it's read as an integer.
authorRodeo <tdskywalker@gmail.com>
Fri, 26 Jul 2013 17:25:11 +0000 (17:25 +0000)
committerRodeo <tdskywalker@gmail.com>
Fri, 26 Jul 2013 17:25:11 +0000 (17:25 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5669 b64f7644-9d1e-0410-96f1-a4d463321fa5

test/test.c

index c8aff4e2f03ac5267b4dd02c8abb917a383dd8a0..2bae606d3d41bdfbca65b083084108a00db003d2 100644 (file)
@@ -1837,11 +1837,11 @@ static int HandleEvents( hb_handle_t * h )
                 int qsv_deinterlace = (deinterlace &&
                                        (!deinterlace_opt ||
                                         !strcmp(deinterlace_opt, "32")));
-                filter_str = hb_strdup_printf("%d:%d:%d:%d:%d:%d_dei:%s",
+                filter_str = hb_strdup_printf("%d:%d:%d:%d:%d:%d_dei:%d",
                                               job->width,   job->height,
                                               job->crop[0], job->crop[1],
                                               job->crop[2], job->crop[3],
-                                              qsv_deinterlace ? "1" : "0");
+                                              qsv_deinterlace);
                 filter = hb_filter_init(HB_FILTER_QSV);
                 hb_add_filter(job, filter, filter_str);
                 free(filter_str);