[FFmpeg-trac] #10852(swscale:new): sws_scale overflows buffer for some resolutions using ssse3 instructions

FFmpeg trac at avcodec.org
Tue Feb 13 05:42:21 EET 2024


#10852: sws_scale overflows buffer for some resolutions using ssse3 instructions
------------------------------------+-----------------------------------
             Reporter:  Jerome      |                    Owner:  (none)
                 Type:  defect      |                   Status:  new
             Priority:  important   |                Component:  swscale
              Version:  git-master  |               Resolution:
             Keywords:  memory      |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------
Comment (by Jerome):

 Replying to [comment:5 Balling]:
 > What I mean is that the default color convertion is buggy, no one should
 use that. And it only affects yuv420p to bgr, not to rgb.

 Ok, I found the flag `SWS_ACCURATE_RND`. With it, the memory issue is
 gone. The issue is that it is at least 3x slower than the default color
 conversion.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10852#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list