1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

4xm: drop pointless assert

Make sure the value of wlog2 is always between 0 and 3.
This commit is contained in:
Luca Barbato 2013-06-06 14:21:19 +02:00
parent b8b809908e
commit 1f0c607560

View File

@ -327,7 +327,7 @@ static inline void mcdc(uint16_t *dst, uint16_t *src, int log2w,
}
break;
default:
assert(0);
break;
}
}
@ -343,7 +343,7 @@ static int decode_p_block(FourXContext *f, uint16_t *dst, uint16_t *src,
uint16_t *end = start + stride * (f->avctx->height - h + 1) - (1 << log2w);
int ret;
if (code < 0 || code > 6)
if (code < 0 || code > 6 || log2w < 0)
return AVERROR_INVALIDDATA;
if (code == 0) {