]> git.sesse.net Git - ffmpeg/commit
avcodec/smacker: Avoid code duplication
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 24 Jul 2020 13:51:09 +0000 (15:51 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 18 Sep 2020 00:13:43 +0000 (02:13 +0200)
commit6ffc7be5da0ece247cf26f1d6b94cd1d6af3d338
tree908278846f8270c40578bf27ba1042b9fc967353
parentb2c42f02337301583b51bea2ede9dbfd837991c0
avcodec/smacker: Avoid code duplication

Besides the obvious advantage of less code this also has a performance
impact: For GCC 9 the time spent on one call to smka_decode_frame() for
the sample from ticket #2425 decreased from 1693619 to 1498127
decicycles. For Clang 9, it decreased from 1369089 to 1366465
decicycles.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/smacker.c