diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-17 13:13:23 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:58 +0100 |
commit | b4a96efdda22e3f0e0e4f1e3fcfe556d3b4639fb (patch) | |
tree | 00229ce446dcccc35fb312325764d85150388c9f /libavutil/parseutils.c | |
parent | 59b8634411ba2a6c7700968b3af5b400b14f0f41 (diff) | |
download | ffmpeg-b4a96efdda22e3f0e0e4f1e3fcfe556d3b4639fb.tar.gz |
avcodec/movtextdec: Simplify checking for invalid extradata
Every font entry occupies at least three bytes, so checking early
whether there is that much data available is a low-effort way to exclude
invalid extradata. Doing so leads to an overall simplification.
Reviewed-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit a42695c07244991ceabf9996d086dda3fcc28fc1)
Diffstat (limited to 'libavutil/parseutils.c')
0 files changed, 0 insertions, 0 deletions