Skip to content

Commit 60cb17d

Browse files
authored
fix(Transmuxer): Fix width calculation when using HEVC-TS (#8868)
`default_display_window_flag` is not somehow used to compute video dimensions from SPS. Only offsets of display window.
1 parent 606df7e commit 60cb17d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/transmuxer/h265.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,12 @@ shaka.transmuxer.H265 = class {
359359
gb.readBoolean(); // frame_field_info_present_flag
360360
defaultDisplayWindowFlag = gb.readBoolean();
361361
if (defaultDisplayWindowFlag) {
362-
leftOffset += gb.readUnsignedExpGolomb();
363-
rightOffset += gb.readUnsignedExpGolomb();
364-
topOffset += gb.readUnsignedExpGolomb();
365-
bottomOffset += gb.readUnsignedExpGolomb();
362+
// We ignore these 4 offsets since they are not necessary for
363+
// calculating the width and height.
364+
gb.skipExpGolomb();
365+
gb.skipExpGolomb();
366+
gb.skipExpGolomb();
367+
gb.skipExpGolomb();
366368
}
367369
const vuiTimingInfoPresentFlag = gb.readBoolean();
368370
if (vuiTimingInfoPresentFlag) {

0 commit comments

Comments
 (0)