]> git.sesse.net Git - ffmpeg/commit
libavcodec/jpeg2000dec: Fix codeblock decode check
authorGautam Ramakrishnan <gautamramk@gmail.com>
Thu, 23 Jul 2020 17:11:10 +0000 (22:41 +0530)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 24 Jul 2020 20:34:15 +0000 (22:34 +0200)
commitff5b9ece4290d245ba3bbf110d90f3f432dda3cc
treece5dd27261db51e245ba210e9424f84cea641fd6
parent4333718b357a9ad195031e5d0ea080d37677b795
libavcodec/jpeg2000dec: Fix codeblock decode check

The codeblock decoder checks whether the mqc decoder
has decoded the right number of bytes. However, this
check does not account for the fact that the mqc encoder's
flush routine adds 2 bytes of data which does not have to be
read by the decoder. The check is modified to account for
this. This patch solves issue #4827

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c