diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-15 23:52:13 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-19 11:55:34 +0100 |
commit | 396efc73e33662ec22bd9b2f83ce33599e58f49c (patch) | |
tree | 5ce264ae22c99de325ac4db7c3a6fafde733b422 /libavcodec/dca_exss.c | |
parent | c1b6acde36c5a38df0c48bfdcd950bb882f7b1d8 (diff) | |
download | ffmpeg-396efc73e33662ec22bd9b2f83ce33599e58f49c.tar.gz |
avformat/matroskaenc: Speed up reformatting WavPack
WavPack's blocks use a length field, so that parsing them is fast.
Therefore it makes sense to parse the block twice, once to get
the length of the output packet and once to write the actual data
instead of writing the data into a temporary buffer in a single pass.
This speeds up muxing from 1597092 to 761850 Decicycles per
write_packet call for a 2000kb/s stereo WavPack file muxed to /dev/null
with writing CRC-32 disabled.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/dca_exss.c')
0 files changed, 0 insertions, 0 deletions