aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cbs_mpeg2_syntax_template.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-12 13:50:55 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-12 23:35:14 +0200
commitea0a41bcafd17d4b97e89dd0aabc7ae08a92e780 (patch)
tree0e1b0ea7f94e75e9efe5edef743f7e8d188cbe0c /libavcodec/cbs_mpeg2_syntax_template.c
parent78169f397dad3d9af9cd750441e11b7e201e3949 (diff)
downloadffmpeg-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/cbs_mpeg2_syntax_template.c')
0 files changed, 0 insertions, 0 deletions