mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
enc/vp8l.c: fix build
broken since:
233a589
take picture->argb_stride into account for lossless coding
Change-Id: I9ecbbf65f3048be3077d28c3a20dfc0e1afa10be
This commit is contained in:
parent
efdcb6670c
commit
7144308402
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user