diff options
author | Andreas Rheinhardt <[email protected]> | 2020-10-17 13:13:23 +0200 |
---|---|---|
committer | Andreas Rheinhardt <[email protected]> | 2021-02-27 07:20:58 +0100 |
commit | b4a96efdda22e3f0e0e4f1e3fcfe556d3b4639fb (patch) | |
tree | 00229ce446dcccc35fb312325764d85150388c9f /libavutil/avstring.h | |
parent | 59b8634411ba2a6c7700968b3af5b400b14f0f41 (diff) |
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 <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
(cherry picked from commit a42695c07244991ceabf9996d086dda3fcc28fc1)
Diffstat (limited to 'libavutil/avstring.h')
0 files changed, 0 insertions, 0 deletions