Skip to content

Commit

Permalink
exp-golomb : fix video height computation
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Dec 7, 2015
1 parent a3c0537 commit 6fa8ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demux/exp-golomb.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class ExpGolomb {
}
return {
width: (((picWidthInMbsMinus1 + 1) * 16) - frameCropLeftOffset * 2 - frameCropRightOffset * 2) * sarScale,
height: ((2 - frameMbsOnlyFlag) * (picHeightInMapUnitsMinus1 + 1) * 16) - (frameCropTopOffset * 2) - (frameCropBottomOffset * 2)
height: ((2 - frameMbsOnlyFlag) * (picHeightInMapUnitsMinus1 + 1) * 16) - ((frameMbsOnlyFlag? 2 : 4) * (frameCropTopOffset + frameCropBottomOffset))
};
}

Expand Down

0 comments on commit 6fa8ced

Please sign in to comment.