diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-17 13:13:23 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-19 04:56:32 +0200 |
commit | a42695c07244991ceabf9996d086dda3fcc28fc1 (patch) | |
tree | 68a3cb767856b5060f5ace5fb0f46910f7487680 /doc/examples/encode_audio.c | |
parent | 38cdd27e9b36183a74c19859a8092aca6e82d712 (diff) | |
download | ffmpeg-a42695c07244991ceabf9996d086dda3fcc28fc1.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>
Diffstat (limited to 'doc/examples/encode_audio.c')
0 files changed, 0 insertions, 0 deletions