mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 08:26:35 +00:00
build: use jpeg_boolean with more recent libjpeg versions.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
bed8f911ce
commit
8879a45d56
@ -20,6 +20,10 @@
|
||||
#include "debug.h"
|
||||
#include "utils.h"
|
||||
|
||||
#if JPEG_LIB_VERSION < 70
|
||||
#define jpeg_boolean boolean
|
||||
#endif
|
||||
|
||||
static void op_begin_decode(SpiceJpegDecoder *decoder,
|
||||
uint8_t* data,
|
||||
int data_size,
|
||||
@ -45,7 +49,7 @@ extern "C" {
|
||||
{
|
||||
}
|
||||
|
||||
static boolean jpeg_decoder_fill_input_buffer(j_decompress_ptr cinfo)
|
||||
static jpeg_boolean jpeg_decoder_fill_input_buffer(j_decompress_ptr cinfo)
|
||||
{
|
||||
PANIC("no more data for jpeg");
|
||||
return FALSE;
|
||||
|
||||
@ -21,6 +21,10 @@
|
||||
#include "utils.h"
|
||||
#include "mjpeg_decoder.h"
|
||||
|
||||
#if JPEG_LIB_VERSION < 70
|
||||
#define jpeg_boolean boolean
|
||||
#endif
|
||||
|
||||
enum {
|
||||
STATE_READ_HEADER,
|
||||
STATE_START_DECOMPRESS,
|
||||
@ -34,7 +38,7 @@ extern "C" {
|
||||
{
|
||||
}
|
||||
|
||||
static boolean fill_input_buffer(j_decompress_ptr cinfo)
|
||||
static jpeg_boolean fill_input_buffer(j_decompress_ptr cinfo)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user