Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions SDAVAssetExportSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,16 @@ - (AVMutableVideoComposition *)buildDefaultVideoComposition
naturalSize.width = naturalSize.height;
naturalSize.height = width;
}

//Fix issues related to https://github.com/rs/SDAVAssetExportSession/issues/91
if (videoAngleInDegree == 90 && transform.tx == 0) {
transform.tx = naturalSize.width;
}

if (videoAngleInDegree == -90 && transform.ty == 0) {
transform.ty = naturalSize.height;
}

videoComposition.renderSize = naturalSize;
// center inside
{
Expand Down