]> source.dussan.org Git - tigervnc.git/commit
H264Libav: Use AVFrame for pixel format conversion buffer
authorAndri Yngvason <andri@yngvason.is>
Wed, 24 Jul 2024 20:50:14 +0000 (20:50 +0000)
committerLinn Mattsson <linma@cendio.se>
Tue, 22 Oct 2024 09:26:24 +0000 (11:26 +0200)
commit9724ea0414b7cff8747540c643113c189954cc97
tree22224e48e466fd7b1b0361ebb31150f67a6f6a4a
parent4c573f89f2f57248455085ae976cab627b47e3c6
H264Libav: Use AVFrame for pixel format conversion buffer

This ensures that the buffer is allocated with the correct alignment and
padding for use with sws_scale.

This fixes out-of-bounds writes which would in some cases cause
segmentation faults and/or heap corruption.

(cherry picked from commit fff17cae7738d6b3d65426a0ce7df76e8034ad1c)
common/rfb/H264LibavDecoderContext.cxx
common/rfb/H264LibavDecoderContext.h