[FFmpeg-trac] #10144(swscale:new): Segfault only on macOS in sws_scale() for DCI 2K resolution

FFmpeg trac at avcodec.org
Mon Apr 10 17:48:13 EEST 2023


#10144: Segfault only on macOS in sws_scale() for DCI 2K resolution
-------------------------------------+-----------------------------------
             Reporter:  LoadingByte  |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  swscale
              Version:  5.1.2        |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------
Comment (by LoadingByte):

 I just noticed the following piece of documentation on the `data` field in
 `frame.h`:

 > Some filters and swscale can read up to 16 bytes beyond the planes, if
 these filters are to be used, then 16 extra bytes must be allocated.

 In accordance, the function `get_video_buffer()` in `frame.c` actually
 allocates these extra bytes (look for `int plane_padding` there).

 As such, I presume that this "bug" is actually intended behavior (but
 maybe not sufficiently well documented)?
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10144#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list