diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-12 13:50:55 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-12 23:35:14 +0200 |
commit | ea0a41bcafd17d4b97e89dd0aabc7ae08a92e780 (patch) | |
tree | 0e1b0ea7f94e75e9efe5edef743f7e8d188cbe0c /libavcodec/aic.c | |
parent | 78169f397dad3d9af9cd750441e11b7e201e3949 (diff) | |
download | ffmpeg-ea0a41bcafd17d4b97e89dd0aabc7ae08a92e780.tar.gz |
avformat/wtvdec: Use smaller upper bound for buffer
Every code point in the BMP is representable with at most three bytes
in UTF-8 and every code point not in the BMP takes four bytes.
For each of the latter, the encoding of UTF-16 takes as many
bytes; for each of the former, it takes at most 3/2 as many.
Therefore one can decrease the size of the buffer allocated
here.
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/aic.c')
0 files changed, 0 insertions, 0 deletions