fix inverted condition in mp4 bug
This caused it to say every video frame had new parameters.
This commit is contained in:
parent
2cc35d1733
commit
06d7150989
@ -550,7 +550,7 @@ impl<W: AsyncWrite + AsyncSeek + Send + Unpin> Mp4Writer<W> {
|
||||
&frame.timestamp(),
|
||||
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,
|
||||
frame.has_new_parameters(),
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user