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>
pull/2/head
Derek Buitenhuis 13 years ago committed by Michael Niedermayer
parent f44f093d60
commit 1ff1b5f7f6
  1. 2
      libavcodec/libutvideo.cpp

@ -130,7 +130,7 @@ static int utvideo_decode_frame(AVCodecContext *avctx, void *data,
{ {
UtVideoContext *utv = (UtVideoContext *)avctx->priv_data; UtVideoContext *utv = (UtVideoContext *)avctx->priv_data;
AVFrame *pic = avctx->coded_frame; AVFrame *pic = avctx->coded_frame;
unsigned int w = avctx->width, h = avctx->height; int w = avctx->width, h = avctx->height;
/* Set flags */ /* Set flags */
pic->reference = 0; pic->reference = 0;

Loading…
Cancel
Save