summaryrefslogtreecommitdiffstats
path: root/libavformat/libmodplug.c
diff options
context:
space:
mode:
authorMartin Storsjö <[email protected]>2017-02-16 12:23:20 +0200
committerMartin Storsjö <[email protected]>2017-02-16 12:58:50 +0200
commit8f5de34c8fb18fa1416e77d2cb998773a49ddb3d (patch)
treea1d62bc203830b8a510dd92b0aa27e048430c3f1 /libavformat/libmodplug.c
parentd00a0d8e84fef1b9124bfaf71cc17df79ca464a6 (diff)
vf_fade: Make sure to not miss the last lines of a frame
When slice_h is rounded up due to chroma subsampling, there's a risk that jobnr * slice_h exceeds frame->height. Prior to a638e9184d63, this wasn't an issue for the last slice of a frame, since slice_end was set to frame->height for the last slice. a638e9184d63 tried 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 in a638e9184d63 instead broke other cases, where slice_h * nb_threads < frame->height. Therefore, make sure the last slice always ends at frame->height. CC: [email protected] Signed-off-by: Martin Storsjö <[email protected]>
Diffstat (limited to 'libavformat/libmodplug.c')
0 files changed, 0 insertions, 0 deletions