lavc/pngdec: use a separate bytestream reader for each chunk
authorAnton Khirnov <anton@khirnov.net>
Fri, 2 Apr 2021 14:33:44 +0000 (16:33 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 8 Apr 2021 09:03:15 +0000 (11:03 +0200)
commit19e81034064586eb9873f7972aaa7915bc56c98e
treeb145c0757e029cbac0aacd1517b747f43d4d741d
parentae08eec6a1f2129cd231a0ab664f0f17b854d138
lavc/pngdec: use a separate bytestream reader for each chunk

This makes sure that reading a truncated chunk will never overflow into
the following chunk. It also allows to remove many repeated lines
skipping over the trailing crc checksum.
libavcodec/pngdec.c