fix inverted condition in mp4 bug

This caused it to say every video frame had new parameters.
This commit is contained in:
Scott Lamb 2022-05-10 15:58:01 -07:00
parent 2cc35d1733
commit 06d7150989

View File

@ -550,7 +550,7 @@ impl<W: AsyncWrite + AsyncSeek + Send + Unpin> Mp4Writer<W> {
&frame.timestamp(), &frame.timestamp(),
frame.data().remaining(), frame.data().remaining(),
); );
let sample_description_index = if let (Some(i), true) = ( let sample_description_index = if let (Some(i), false) = (
self.cur_video_params_sample_description_index, self.cur_video_params_sample_description_index,
frame.has_new_parameters(), frame.has_new_parameters(),
) { ) {