From 2abfa54f9554125df6327a15c492487f4d2f6524 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 16 Jun 2016 22:24:30 -0700 Subject: [PATCH] DecodeImageData(): change the incorrect assert this function can be called not to decode pixels, but simply to finish processing (through process_func()) the already decoded pixels. Change-Id: I80485e92e3c47f0aa3389476dcb82745a243fc4a --- src/dec/vp8l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dec/vp8l.c b/src/dec/vp8l.c index 164d2d03..e154a0af 100644 --- a/src/dec/vp8l.c +++ b/src/dec/vp8l.c @@ -1055,7 +1055,7 @@ static int DecodeImageData(VP8LDecoder* const dec, uint32_t* const data, const int mask = hdr->huffman_mask_; const HTreeGroup* htree_group = (src < src_last) ? GetHtreeGroupForPos(hdr, col, row) : NULL; - assert(src < src_end); + assert(dec->last_row_ < last_row); assert(src_last <= src_end); while (src < src_last) {