diff options
author | saintdev <[email protected]> | 2007-09-13 08:22:27 +0000 |
---|---|---|
committer | saintdev <[email protected]> | 2007-09-13 08:22:27 +0000 |
commit | 0e87de0ff6c233e245f28f4a74336024d0322863 (patch) | |
tree | 1aee3ae249fa1cbd2e145a84f7191ced05abb77d | |
parent | 0c63e2738ce48befceab838f05213ceb1ccbe060 (diff) |
Cast the flags passed to sws_getContext to a 16-bit int.
Otherwise I get segfaults on 64-bit linux.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@958 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/hb.c | 4 | ||||
-rw-r--r-- | libhb/render.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index 7a15a1181..a53bd1f4a 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -369,7 +369,7 @@ void hb_get_preview( hb_handle_t * h, hb_title_t * title, int picture, title->height - (job->crop[0] + job->crop[1]), PIX_FMT_YUV420P, job->width, job->height, PIX_FMT_YUV420P, - SWS_LANCZOS|SWS_ACCURATE_RND, NULL, NULL, NULL); + (uint16_t)(SWS_LANCZOS|SWS_ACCURATE_RND), NULL, NULL, NULL); // Scale sws_scale(context, @@ -383,7 +383,7 @@ void hb_get_preview( hb_handle_t * h, hb_title_t * title, int picture, // Get preview context context = sws_getContext(job->width, job->height, PIX_FMT_YUV420P, job->width, job->height, PIX_FMT_RGBA32, - SWS_LANCZOS|SWS_ACCURATE_RND, NULL, NULL, NULL); + (uint16_t)(SWS_LANCZOS|SWS_ACCURATE_RND), NULL, NULL, NULL); // Create preview sws_scale(context, diff --git a/libhb/render.c b/libhb/render.c index 05dcdbbf9..edbd18a80 100644 --- a/libhb/render.c +++ b/libhb/render.c @@ -347,7 +347,7 @@ int renderInit( hb_work_object_t * w, hb_job_t * job ) title->height - (job->crop[0] + job->crop[1]), PIX_FMT_YUV420P, job->width, job->height, PIX_FMT_YUV420P, - SWS_LANCZOS|SWS_ACCURATE_RND, NULL, NULL, NULL); + (uint16_t)(SWS_LANCZOS|SWS_ACCURATE_RND), NULL, NULL, NULL); } /* Setup FIFO queue for subtitle cache */ |