summaryrefslogtreecommitdiffstats
path: root/libavcodec/libutvideo.cpp
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2011-11-07 12:20:26 -0500
committerMichael Niedermayer <michaelni@gmx.at>2011-11-07 19:37:38 +0100
commit1ff1b5f7f64402198341c3b0f91ae8dc6e07dca8 (patch)
tree9920b39d95d3c97c36e538514914528f3ef48815 /libavcodec/libutvideo.cpp
parentf44f093d6009f1027fc2cded80b7aa76f974b750 (diff)
downloadffmpeg-streaming-1ff1b5f7f64402198341c3b0f91ae8dc6e07dca8.zip
ffmpeg-streaming-1ff1b5f7f64402198341c3b0f91ae8dc6e07dca8.tar.gz
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@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libutvideo.cpp')
-rw-r--r--libavcodec/libutvideo.cpp2
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;
OpenPOWER on IntegriCloud