Fix scaling of bitmap subs when the corresponding video is cropped (#2670).
authorCarl Hetherington <cth@carlh.net>
Fri, 1 Dec 2023 20:25:54 +0000 (21:25 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 12 Jan 2024 11:07:19 +0000 (12:07 +0100)
commit6ac468554c7fea0dfaefde85fb6cdd0fceaf5cad
tree1271ef19694e3e3063349e0367178fba081d01fa
parent213afdc4e9399e3f2aaea3df54ab79535d43045e
Fix scaling of bitmap subs when the corresponding video is cropped (#2670).

Previously we would scale the bitmap size/position to a proportion
of the original video frame, then scale it back up again to the DCP
container.  This didn't take into account some cropped cases where
the picture would end up the same shape but the subtitles would be
stretched.
src/lib/ffmpeg_decoder.cc