Skip to content

Commit

Permalink
Merge pull request #56 from RohanPunjani/fix/output-frame-dimensions
Browse files Browse the repository at this point in the history
fix: added code to set height and width of the output frame
  • Loading branch information
NiiightmareXD authored Jun 8, 2024
2 parents 9af2086 + 887f42b commit 6552bac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ impl VideoEncoder {
MediaEncodingProfile::CreateWmv(VideoEncodingQuality(encoder_quality as i32))?
}
};
media_encoding_profile
.Video()?
.SetWidth(width)?;
media_encoding_profile
.Video()?
.SetHeight(height)?;

let video_encoding_properties = VideoEncodingProperties::CreateUncompressed(
&MediaEncodingSubtypes::Bgra8()?,
Expand Down

0 comments on commit 6552bac

Please sign in to comment.