-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add frame duration management #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A test would also be nice to have.
1a1da53
to
2561959
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far. Only a small naming issue left.
src/error.rs
Outdated
@@ -117,6 +119,12 @@ impl std::fmt::Display for DemuxError { | |||
DemuxError::PositiveValueIsNotPositive => { | |||
write!(f, "a value that should be positive is not positive") | |||
} | |||
DemuxError::FrameAlreadyHaveDuration(previous_duration) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DemuxError::FrameAlreadyHasDuration
Subtitle frame generally need a duration. In this case, the Frame is placed in a Block grouped in a GroupBlock with a BlockDuration. Without break the laced frames management. This should fix issue hasenbanck#7 : [Add a duration field to Frame](hasenbanck#7)
2561959
to
7f12a5a
Compare
PR now looks fine for merge. |
Thank you, do you plan to release a new version of matroska-demuxer after merge ? |
Draft:
Subtitle frame generally need a duration.
In this case, the Frame is placed in a Block grouped in a GroupBlock with a BlockDuration. Without break the laced frames management.
This should fix issue #7 : Add a duration field to Frame