vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sun Mar  3 
17:32:54 2019 +0200| [d9c3b46b154f40371028f167ce7df41cc8fd7884] | committer: 
Rémi Denis-Courmont

avcodec: mute size signedness warning

avcodec uses signed dimensions for no obvious reasons.
Not much to do about it on VLC side.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9c3b46b154f40371028f167ce7df41cc8fd7884
---

 modules/codec/avcodec/video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index d020d305c6..4f3c496c8a 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -182,9 +182,9 @@ static int lavc_GetVideoFormat(decoder_t *dec, 
video_format_t *restrict fmt,
     fmt->i_width = width;
     fmt->i_height = height;
     if ( dec->fmt_in.video.i_visible_width != 0 &&
-         dec->fmt_in.video.i_visible_width <= ctx->width &&
+         dec->fmt_in.video.i_visible_width <= (unsigned)ctx->width &&
          dec->fmt_in.video.i_visible_height != 0 &&
-         dec->fmt_in.video.i_visible_height <= ctx->height )
+         dec->fmt_in.video.i_visible_height <= (unsigned)ctx->height )
     {
         /* the demuxer/packetizer provided crop info that are lost in lavc */
         fmt->i_visible_width  = dec->fmt_in.video.i_visible_width;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to