[FFmpeg-trac] #9254(undetermined:new): sws_scale() writes out of buffer on ssse3 YUV420P->BGRA conversion
FFmpeg
trac at avcodec.org
Mon Sep 4 17:24:22 EEST 2023
#9254: sws_scale() writes out of buffer on ssse3 YUV420P->BGRA conversion
-------------------------------------+-------------------------------------
Reporter: Sergei | Owner: (none)
Trofimovich |
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by bmegli):
I am getting similar crash in n4.4 source build
- with YUV420P -> RGB24 color conversion, 1932x1096 resolution
- FWIW, the input from H264 decoder has padding (e.g. linesize[0] == 2048)
A quick workaround is to add some padding to output buffer.
AV_INPUT_BUFFER_PADDING_SIZE seems to work but whether it is safe would
require diving into code.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9254#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list