summaryrefslogtreecommitdiffstats
path: root/libhb/render.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-04-08 18:10:43 +0000
committerjstebbins <[email protected]>2011-04-08 18:10:43 +0000
commit122c93f2b05790907e79c9a292342b3763399948 (patch)
treed4a893193f07f11336626e86e909b2c8879ab59e /libhb/render.c
parentdb4b25fc4de5db124cb2d771ca3369d9d9b36d61 (diff)
Eliminate incompatible pointer type warnings for sws_scale
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3910 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/render.c')
-rw-r--r--libhb/render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/render.c b/libhb/render.c
index f8fff9d09..20736c29f 100644
--- a/libhb/render.c
+++ b/libhb/render.c
@@ -547,7 +547,8 @@ int renderWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
// Scale pic_crop into pic_render according to the context set up in renderInit
sws_scale(pv->context,
- pv->pic_tmp_crop.data, pv->pic_tmp_crop.linesize,
+ (const uint8_t* const *)pv->pic_tmp_crop.data,
+ pv->pic_tmp_crop.linesize,
0, title->height - (job->crop[0] + job->crop[1]),
pv->pic_tmp_out.data, pv->pic_tmp_out.linesize);