Skip to content

Commit 77d0ec6

Browse files
committed
format
1 parent 5daf5d2 commit 77d0ec6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ impl H264EncoderBuilder {
117117
format
118118
};
119119

120-
if is_420(output_format)
121-
&& (output_width % 2 != 0 || output_height % 2 != 0)
122-
{
120+
if is_420(output_format) && (output_width % 2 != 0 || output_height % 2 != 0) {
123121
return Err(H264EncoderError::InvalidOutputDimensions {
124122
width: output_width,
125123
height: output_height,

0 commit comments

Comments
 (0)