]> source.dussan.org Git - tigervnc.git/commit
Workaround for MFT cropping in H264 decoding 1480/head
authorMartins Mozeiko <martins.mozeiko@gmail.com>
Tue, 7 Jun 2022 07:37:54 +0000 (00:37 -0700)
committerMartins Mozeiko <martins.mozeiko@gmail.com>
Wed, 8 Jun 2022 04:47:59 +0000 (21:47 -0700)
commit03a2386b3d553d95ff0dd9eda32539e87ba645b3
tree168ae212ee546f20952b6c4a97a77b5b3ed65268
parent15fc3e2ab14074583eb917aae9d6ebaeae9b6154
Workaround for MFT cropping in H264 decoding

It seems MFT h264 decoder does not support frame cropping. Which
means that if frame width or height is not multiple of 16 then
decoded output can potentially be used with wrong offset. This
code adds explicit parsing of SPS to extract cropping information
to use, and will apply cropping if reported size differs from
expected.
common/rfb/H264WinDecoderContext.cxx
common/rfb/H264WinDecoderContext.h