]> git.sesse.net Git - ffmpeg/commit
avcodec/webp: Use uint8_t for code lengths
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 22 Oct 2020 13:54:08 +0000 (15:54 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 27 Oct 2020 10:51:01 +0000 (11:51 +0100)
commitd4cce1514edf023145fb5a8af9c52bb8e95bede1
tree127307c72a201cda5428a2587f117c75480e3553
parent6f36eb0da71d22aadf8f056f0966bd86656ea57e
avcodec/webp: Use uint8_t for code lengths

They are always in the range 0..15, so using an int is not necessary.
Furthermore, using an int would not work if sizeof(int) != 4 as
ff_init_vlc_sparse() can only handle uint8_t, uint16_t and uint32_t
lengths.

Reviewed-by: zhilizhao(赵志立) <quinkblack@foxmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/webp.c