diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-11 14:19:27 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-15 05:45:30 +0100 |
commit | dcc3f6227070fe8fecbcfe7849fb69f5e8b832f7 (patch) | |
tree | dc43ddba7589e9dcab971f0b6f9898421c1f9034 /libavformat/dnxhddec.c | |
parent | 88cccd1c7303b2560a94f9d947d422e11f239031 (diff) | |
download | ffmpeg-dcc3f6227070fe8fecbcfe7849fb69f5e8b832f7.tar.gz |
avcodec/flashsv: Avoid deflating data
Currently priming the zlib decompressor involves compressing
data directly after having decompressed it and decompressing
it again in order to set the "dictionary" and to initialize
the adler32-checksum. Yet this is wasteful and can be simplified
by synthetizing the compressed data via non-compressed blocks.
This reduced the amount of allocations for the decoding part
of fate-vsynth1-flashsv2, namely from
total heap usage: 9,135 allocs, 9,135 frees, 376,503,427 bytes allocated
to
total heap usage: 2,373 allocs, 2,373 frees, 14,144,083 bytes allocated
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/dnxhddec.c')
0 files changed, 0 insertions, 0 deletions