From fce4b94bb22ad10fdd58c51eb291c66188d9c1cc Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Wed, 31 May 2017 17:52:55 +1200 Subject: [PATCH] mjpeg: remember to set dinfo.err. --- demo/mjpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/mjpeg.c b/demo/mjpeg.c index 571910b..184a3c2 100644 --- a/demo/mjpeg.c +++ b/demo/mjpeg.c @@ -178,7 +178,7 @@ void mjpeg_init(struct mjpeg_decoder *mj) memset(mj, 0, sizeof(*mj)); /* Set up error management */ - jpeg_std_error(&mj->err); + mj->dinfo.err = jpeg_std_error(&mj->err); mj->err.error_exit = my_error_exit; mj->err.output_message = my_output_message;