mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-05-08 15:45:43 +08:00
8f5de34c8f
When slice_h is rounded up due to chroma subsampling, there's a risk that jobnr * slice_h exceeds frame->height. Prior toa638e9184d, this wasn't an issue for the last slice of a frame, since slice_end was set to frame->height for the last slice.a638e9184dtried to fix the case where other slices than the last one would exceed frame->height (which can happen where the number of slices/threads is very large compared to the frame height). However, the fix ina638e9184dinstead broke other cases, where slice_h * nb_threads < frame->height. Therefore, make sure the last slice always ends at frame->height. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>