From 714430840215081d1559880c1a4854bd899b198e Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 20 Jun 2012 14:44:39 -0700 Subject: [PATCH] enc/vp8l.c: fix build broken since: 233a589 take picture->argb_stride into account for lossless coding Change-Id: I9ecbbf65f3048be3077d28c3a20dfc0e1afa10be --- src/enc/vp8l.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/enc/vp8l.c b/src/enc/vp8l.c index 6b56908a..afbb4695 100644 --- a/src/enc/vp8l.c +++ b/src/enc/vp8l.c @@ -141,12 +141,10 @@ static int VP8LEncAnalyze(VP8LEncoder* const enc) { assert(pic != NULL && pic->argb != NULL); enc->use_palette_ = - AnalyzeAndCreatePalette(pic->argb, pic->width * pic->height, - enc->palette_, &enc->palette_size_); + AnalyzeAndCreatePalette(pic, enc->palette_, &enc->palette_size_); if (!enc->use_palette_) { double non_pred_entropy, pred_entropy; - if (!AnalyzeEntropy(pic->argb, pic->width, pic->height, - &non_pred_entropy, &pred_entropy)) { + if (!AnalyzeEntropy(pic, &non_pred_entropy, &pred_entropy)) { return 0; }