[vlc-commits] videotoolbox: fix sign-compare warning
Thomas Guillem
git at videolan.org
Fri Jan 24 11:37:51 CET 2020
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 24 11:01:09 2020 +0100| [330870c228f42c2a49a122fec39f299a3dcc39a8] | committer: Thomas Guillem
videotoolbox: fix sign-compare warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=330870c228f42c2a49a122fec39f299a3dcc39a8
---
modules/codec/videotoolbox.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/codec/videotoolbox.c b/modules/codec/videotoolbox.c
index a8d4be7254..7e755c2fde 100644
--- a/modules/codec/videotoolbox.c
+++ b/modules/codec/videotoolbox.c
@@ -1001,7 +1001,7 @@ static CMVideoCodecType CodecPrecheck(decoder_t *p_dec)
if (!deviceSupportsHEVC())
{
msg_Warn(p_dec, "device doesn't support HEVC");
- return -1;
+ return 0;
}
return kCMVideoCodecType_HEVC;
@@ -1009,7 +1009,7 @@ static CMVideoCodecType CodecPrecheck(decoder_t *p_dec)
{
if (p_dec->fmt_in.i_original_fourcc == VLC_FOURCC( 'X','V','I','D' )) {
msg_Warn(p_dec, "XVID decoding not implemented, fallback on software");
- return -1;
+ return 0;
}
msg_Dbg(p_dec, "Will decode MP4V with original FourCC '%4.4s'", (char *)&p_dec->fmt_in.i_original_fourcc);
@@ -1055,7 +1055,7 @@ static CMVideoCodecType CodecPrecheck(decoder_t *p_dec)
msg_Dbg(p_dec, "Decoding DV PAL");
return kCMVideoCodecType_DVCPAL;
default:
- return -1;
+ return 0;
}
#endif
/* mpgv / mp2v needs fixing, so disable it for now */
@@ -1387,7 +1387,7 @@ static int OpenDecoder(vlc_object_t *p_this)
CMVideoCodecType codec;
codec = CodecPrecheck(p_dec);
- if (codec == -1)
+ if (codec == 0)
return VLC_EGENERIC;
/* now that we see a chance to decode anything, allocate the
More information about the vlc-commits
mailing list