OSDN Git Service

libhb: correct error in preview scaling
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 6 Jun 2009 17:05:45 +0000 (17:05 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 6 Jun 2009 17:05:45 +0000 (17:05 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@2494 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/hb.c

index 2311902..7d140bd 100644 (file)
@@ -469,7 +469,7 @@ void hb_get_preview( hb_handle_t * h, hb_title_t * title, int picture,
     context = sws_getContext(title->width  - (job->crop[2] + job->crop[3]),
                              title->height - (job->crop[0] + job->crop[1]),
                              PIX_FMT_YUV420P,
-                             rgb_width, job->height, PIX_FMT_YUV420P,
+                             job->width, job->height, PIX_FMT_YUV420P,
                              swsflags, NULL, NULL, NULL);
 
     // Scale