diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-05 20:46:57 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-08 13:45:08 +0100 |
commit | a0900a318a60e38ffeb14c322b09f98fcbd97c73 (patch) | |
tree | 2263bc3cb62bd227c621eb17d28f7e0535734dd0 /tools/python/convert_header.py | |
parent | 0a76f8217e0d80d336ad8d9c46523fd3d1262c8c (diff) | |
download | ffmpeg-a0900a318a60e38ffeb14c322b09f98fcbd97c73.tar.gz |
avformat/aadec: Avoid copying data around
Up until now, the packets have been read in blocks of at most
eight bytes at a time; then these blocks have been decrypted
and copied into a buffer on the stack (that was double the size
needed...). From there they have been copied to the dst packet.
This commit changes this: The data is read in one go; and
the decryption avoids temporary buffers, too, by making
use of the fact that src and dst of av_tea_crypt() can coincide.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tools/python/convert_header.py')
0 files changed, 0 insertions, 0 deletions