[FFmpeg-devel] [PATCH 1/2] avcodec/hapdec: Check tex_size more strictly and before using it
Moritz Barsnick
barsnick at gmx.net
Tue Mar 31 18:45:39 EEST 2020
On Sat, Mar 28, 2020 at 22:12:45 +0100, Michael Niedermayer wrote:
> + if (ctx->tex_size != (avctx->coded_width / TEXTURE_BLOCK_W)
> + *(avctx->coded_height / TEXTURE_BLOCK_H)
> + *tex_rat[t]) {
It would be easier to recognize that this is a multiplication and not a
dereference, if the '*' wasn't attached to the right hand term.
But I do realize you only moved the block of code.
Moritz
More information about the ffmpeg-devel
mailing list