Skip to content

Commit

Permalink
fix encoder args
Browse files Browse the repository at this point in the history
when user change, clear previous args
  • Loading branch information
Anime4000 committed Aug 16, 2024
1 parent 5508a0b commit 0e00324
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IFME/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ private void cboVideoEncoder_SelectedIndexChanged(object sender, EventArgs e)

d.Quality.BitDepth = d.Quality.BitDepth <= topBitDepth ? d.Quality.BitDepth : topBitDepth;
d.Quality.PixelFormat = d.Quality.PixelFormat <= topPixelFmt ? d.Quality.PixelFormat : topPixelFmt;

d.Encoder.Command = string.Empty;
}

break;
Expand All @@ -668,6 +670,8 @@ private void cboVideoEncoder_SelectedIndexChanged(object sender, EventArgs e)

d.Quality.BitDepth = d.Quality.BitDepth <= topBitDepth ? d.Quality.BitDepth : topBitDepth;
d.Quality.PixelFormat = d.Quality.PixelFormat <= topPixelFmt ? d.Quality.PixelFormat : topPixelFmt;

d.Encoder.Command = string.Empty;
}
}
}
Expand Down

0 comments on commit 0e00324

Please sign in to comment.