Skip to content

Commit 5daf5d2

Browse files
committed
Coderabbit suggestions
1 parent 067b72b commit 5daf5d2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

crates/enc-ffmpeg/src/video/h264.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ impl H264EncoderBuilder {
8888
.output_size
8989
.unwrap_or((input_config.width, input_config.height));
9090

91-
if output_width == 0 || output_height == 0 {
92-
output_width = input_config.width;
93-
output_height = input_config.height;
94-
}
95-
9691
if output_width == 0 || output_height == 0 {
9792
return Err(H264EncoderError::InvalidOutputDimensions {
9893
width: output_width,

0 commit comments

Comments
 (0)