]> git.sesse.net Git - ffmpeg/commit
pngdec: fix and simplify apng reference handling
authorAnton Khirnov <anton@khirnov.net>
Sun, 14 Feb 2021 15:37:33 +0000 (16:37 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 24 Feb 2021 16:16:46 +0000 (17:16 +0100)
commit5663301560d77486c7f7c03c1aa5f542fab23c24
treed4c4bbef7203250fa1c69f0b4c7acdd15464a106
parent087359ad8599da3972e142b4f2b56a858cdef70b
pngdec: fix and simplify apng reference handling

Current code is very confused and confusing. It uses two different
reference frames - "previous" and "last" - when only one is really
necessary. It also confuses the two, leading to incorrect output with
APNG_DISPOSE_OP_PREVIOUS mode.

Fixes #9017.
libavcodec/pngdec.c