-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #261 - pch07/ffmpeg_non_io_tests, r=TroyKomodo
Pch07/ffmpeg non io tests Added tests to the non io files in the ffmpeg crate. So far I have only run into one issue: In the `logs.rs` file, I updated some log levels to their respective names in `log_callback_tracing()`, let me know if this change is appropriate. Additionally, `test_log_callback_tracing()` excludes the `tracing::warn!` case because it doesn't work for some reason; I couldn't figure this out. In the `frame.rs` file, the last test is incorrect due to `is_audio()` returning `false` instead of `true`. I left it commented for now. In the `encoder.rs` file, I didn't include tests for the `Encoder::send_frame()`, `Encoder::receive_packet()`, `MuxerEncoder::send_eof()`, `MuxerEncoder::send_frame()`, or `MuxerEncoder::handle_packets()` functions. In the `decoder.rs` file, I didn't include tests for `GenericDecoder::send_packet()`, `GenericDecoder::send_eof()`, or `GenericDecoder::receive_frame()` functions. The untested functions are due to them being kinda complex (also they seem to be related to the untested functions in the ffmpeg/io folder. It would probably be better to work on all of those in one go since it seems pretty technical. Requested-by: TroyKomodo <[email protected]> Reviewed-by: TroyKomodo <[email protected]>
- Loading branch information
Showing
18 changed files
with
3,409 additions
and
249 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.