From d9120271e75b5797c212d795e55429bdb65d3cb1 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 9 Dec 2016 18:20:25 -0800 Subject: [PATCH] jpegdec: correct ContextFill signature fill_input_buffer returns a boolean Change-Id: I208a1a862fa6c57cb5b73568b84055f734c1c36f (cherry picked from commit cec7201447bb0639f71f7cd3c4dfded5e249cd95) --- examples/jpegdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/jpegdec.c b/examples/jpegdec.c index 530b7d9a..c7458a7c 100644 --- a/examples/jpegdec.c +++ b/examples/jpegdec.c @@ -222,10 +222,10 @@ static void ContextInit(j_decompress_ptr cinfo) { ctx->pub.bytes_in_buffer = ctx->data_size; } -static int ContextFill(j_decompress_ptr cinfo) { +static boolean ContextFill(j_decompress_ptr cinfo) { // we shouldn't get here. ERREXIT(cinfo, JERR_FILE_READ); - return 0; + return FALSE; } static void ContextSkip(j_decompress_ptr cinfo, long jump_size) {