mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
f44f093d60
commit
1ff1b5f7f6
|
@ -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…
Reference in New Issue