avcodec/hq_hqa: Fix signness of tag

Fixes Ticket4509

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-06-08 18:53:13 +02:00
parent 130a6c04a4
commit 653bf3c5a1
1 changed files with 3 additions and 2 deletions

View File

@ -121,7 +121,7 @@ static int hq_decode_frame(HQContext *ctx, AVFrame *pic,
uint32_t slice_off[21]; uint32_t slice_off[21];
int slice, start_off, next_off, i, ret; int slice, start_off, next_off, i, ret;
if (prof_num >= NUM_HQ_PROFILES) { if ((unsigned)prof_num >= NUM_HQ_PROFILES) {
profile = &ff_hq_profile[0]; profile = &ff_hq_profile[0];
avpriv_request_sample(ctx->avctx, "HQ Profile %d", prof_num); avpriv_request_sample(ctx->avctx, "HQ Profile %d", prof_num);
} else { } else {
@ -298,7 +298,8 @@ static int hq_hqa_decode_frame(AVCodecContext *avctx, void *data,
AVFrame *pic = data; AVFrame *pic = data;
uint32_t info_tag; uint32_t info_tag;
unsigned int data_size; unsigned int data_size;
int tag, ret; int ret;
unsigned tag;
bytestream2_init(&ctx->gbc, avpkt->data, avpkt->size); bytestream2_init(&ctx->gbc, avpkt->data, avpkt->size);
if (bytestream2_get_bytes_left(&ctx->gbc) < 4 + 4) { if (bytestream2_get_bytes_left(&ctx->gbc) < 4 + 4) {