mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-03-13 09:00:40 +08:00
Legacy swscale may overwrite the pixel formats in the context (see handle_formats() in libswscale/utils.c). This may lead to an issue where, when sws_frame_start() allocates a new frame, it uses the wrong pixel format. Instead of fixing the issue in swscale, just make sure dst is always allocated prior to calling the legacy scaler. Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>