diff options
Diffstat (limited to 'src/libxinevdec/image.c')
-rw-r--r-- | src/libxinevdec/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libxinevdec/image.c b/src/libxinevdec/image.c index 51e5d0309..5f7a776ef 100644 --- a/src/libxinevdec/image.c +++ b/src/libxinevdec/image.c @@ -88,7 +88,7 @@ static void image_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { if (buf->decoder_flags & BUF_FLAG_FRAME_END) { int width, height, i; - MagickBooleanType status; + int status; MagickWand *wand; uint8_t *img_buf, *img_buf_ptr; yuv_planes_t yuv_planes; @@ -101,7 +101,7 @@ static void image_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { status = MagickReadImageBlob(wand, this->image, this->index); this->index = 0; - if (status == MagickFalse) { + if (!status) { DestroyMagickWand(wand); lprintf("error loading image\n"); return; |