avcodec/jpeg2000dec: account two last bytes from end of bytestream as EOC marker
authorPaul B Mahol <onemda@gmail.com>
Fri, 25 Mar 2016 10:22:39 +0000 (11:22 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 25 Mar 2016 21:00:52 +0000 (22:00 +0100)
commite2298b3fccde6aeaacf97912e4f2afe2d3548e00
tree0c423d7e1b595cda938cad9c765185a91a830f05
parent4d251723c0a157b77fa9d3c84c74507d399f7254
avcodec/jpeg2000dec: account two last bytes from end of bytestream as EOC marker

This silences missing EOC marker when decoding j2k files with Psot set to 0.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/jpeg2000dec.c