[FFmpeg-cvslog] libutvideodec: Width and height don't need to be unsigned

Derek Buitenhuis git at videolan.org
Mon Nov 7 21:45:13 CET 2011


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Mon Nov  7 12:20:26 2011 -0500| [1ff1b5f7f64402198341c3b0f91ae8dc6e07dca8] | committer: Michael Niedermayer

libutvideodec: Width and height don't need to be unsigned

Width and height, as used in utvideo_decode_frame, do not
need to be unsigned, and it could cause sign-compare
warnings later on.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ff1b5f7f64402198341c3b0f91ae8dc6e07dca8
---

 libavcodec/libutvideo.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/libutvideo.cpp b/libavcodec/libutvideo.cpp
index fa1bcc5..e92b3e2 100644
--- a/libavcodec/libutvideo.cpp
+++ b/libavcodec/libutvideo.cpp
@@ -130,7 +130,7 @@ static int utvideo_decode_frame(AVCodecContext *avctx, void *data,
 {
     UtVideoContext *utv = (UtVideoContext *)avctx->priv_data;
     AVFrame *pic = avctx->coded_frame;
-    unsigned int w = avctx->width, h = avctx->height;
+    int w = avctx->width, h = avctx->height;
 
     /* Set flags */
     pic->reference = 0;



More information about the ffmpeg-cvslog mailing list