diff options
author | Christophe Gisquet <[email protected]> | 2014-06-15 12:04:36 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2014-06-16 00:52:09 +0200 |
commit | f6577bd9cf3e49d522242771184834d6b0c157fd (patch) | |
tree | adb52be554906c1df501b4076256a5af03ace1f9 /libavformat/rtmpcrypt.c | |
parent | 02bffc560f5ee91afa62b6c1a1a7012efc161734 (diff) |
huffyuvdec: use unsafe bitstream reader
The reader reads in chunks of 11 bits at most, and at most 3 times. The unsafe
reader therefore may read 6 chunks instead of 1 in worst case, ie 8 bytes,
which is within the padding tolerance.
The reader ends up being ~10% faster. Cumulative effect of unsafe reading and
code block swapping on 3 sequences is for 1 thread, decoding time goes from
23.3s to 19.0s.
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavformat/rtmpcrypt.c')
0 files changed, 0 insertions, 0 deletions