]> 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)
committerAndri Yngvason <andri@yngvason.is>
Fri, 16 Aug 2024 22:22:10 +0000 (22:22 +0000)
commitfff17cae7738d6b3d65426a0ce7df76e8034ad1c
treedb66058c704214d6b3e53aee6d44333f949c8769
parent4f6a3521874da5a67fd746389cfa9b6199eb3582
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.
common/rfb/H264LibavDecoderContext.cxx
common/rfb/H264LibavDecoderContext.h