demux: mkv: apply the stretching of visible area after cropping
- Feb 22, 2022
-
-
As specified in the format [1]. > If the DisplayUnit of the same TrackEntry is 0, then the default value for > DisplayWidth is equal toPixelWidth - PixelCropLeft - PixelCropRight, > else there is no default value. [1] https://www.ietf.org/archive/id/draft-ietf-cellar-matroska-08.html#section-8.1.4.1.31.11
267cf709 -
We can apply the SAR once we know the cropped pixels dimensions and the actual display dimension requested. Apply the DAR when DisplayUnit is 3 [1]. [1] https://www.ietf.org/archive/id/draft-ietf-cellar-matroska-08.html#name-displayunit-element
cc4faf0c -
We can also apply the pixel cropping no matter what, if the value is 0 it will have no side effect. Ref. #26501
32f4a992
-