mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 800564: Handle MJPEG decode errors r=abr
This commit is contained in:
parent
7be5c61b60
commit
d63df758cf
@ -218,7 +218,7 @@ int MJPGToI420(const uint8* sample,
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return ret ? 0 : -1;
|
||||
}
|
||||
|
||||
#ifdef HAVE_JPEG
|
||||
@ -380,7 +380,7 @@ int MJPGToARGB(const uint8* sample,
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return ret ? 0 : -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -313,7 +313,7 @@ int32_t VideoCaptureImpl::IncomingFrame(
|
||||
videoFrameLength,
|
||||
_rotateFrame,
|
||||
&_captureFrame);
|
||||
if (conversionResult < 0)
|
||||
if (conversionResult != 0)
|
||||
{
|
||||
LOG(LS_ERROR) << "Failed to convert capture frame from type "
|
||||
<< frameInfo.rawType << "to I420.";
|
||||
|
Loading…
Reference in New Issue
Block a user