aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/f_reverse.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-24 20:56:46 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-18 01:57:09 +0200
commit943a4581570728b4b1a2bf97e5601e24f3f80404 (patch)
treea5789d5870876975c7104362e1fa2d82e8ffeb25 /libavfilter/f_reverse.c
parent77c9507253cab75474825be0836dd147dd2ab602 (diff)
downloadffmpeg-943a4581570728b4b1a2bf97e5601e24f3f80404.tar.gz
avcodec/smacker: Remove redundant check when decoding header trees
When length is zero for a leaf node (which happens iff the Huffman tree consists of one leaf node only), prefix is also automatically zero. Performance impact is negligible: For GCC 9 and the sample from #2425, the time for one call to smka_decode_frame() decreased from 2053758 to 2053671 decicycles; for Clang 9 it went from 1523153 to 1521288. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/f_reverse.c')
0 files changed, 0 insertions, 0 deletions