1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-06-02 13:39:54 +00:00
mp4-rust/src/mp4box
Nathan Fiedler 56cc260a5c
fix: minimize assertions in non-test code (#56)
Initial effort to reduce or eliminate the use of assertions in the
production code (i.e. not test code). See issue 43 for an example of how
this can cause an application (thread) to panic when reading an unusual
file. Not all of the changes were as simple as returning an Err, since some
functions did not return a Result. Also, the error type used (InvalidData)
is just a catch-all with a message, and in some cases a more refined error
type may be in order.

cargo test passes
2021-07-12 17:28:39 -07:00
..
avc1.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
co64.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
ctts.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
dinf.rs fix: minimize assertions in non-test code (#56) 2021-07-12 17:28:39 -07:00
edts.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
elst.rs fix: minimize assertions in non-test code (#56) 2021-07-12 17:28:39 -07:00
ftyp.rs Store 4 bytes in FourCC instead of a String (#45) 2021-01-27 18:51:03 -08:00
hdlr.rs fix: minimize assertions in non-test code (#56) 2021-07-12 17:28:39 -07:00
hev1.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
mdhd.rs fix: minimize assertions in non-test code (#56) 2021-07-12 17:28:39 -07:00
mdia.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
mehd.rs fix: minimize assertions in non-test code (#56) 2021-07-12 17:28:39 -07:00
mfhd.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
minf.rs Fix the playback bug in QuickTime and Safari (#34) 2020-11-23 13:38:05 -08:00
mod.rs bugfix: fix size when parsing largesize box header (#49) 2021-01-31 11:47:28 -08:00
moof.rs Fragmented boxes (#30) 2020-09-13 00:25:08 -07:00
moov.rs Fragmented boxes (#30) 2020-09-13 00:25:08 -07:00
mp4a.rs Fix the playback bug in QuickTime and Safari (#34) 2020-11-23 13:38:05 -08:00
mvex.rs example/copy supports vp9-in-mp4 and example/dump supports fmp4 (#41) 2021-01-26 19:31:32 -08:00
mvhd.rs fix: minimize assertions in non-test code (#56) 2021-07-12 17:28:39 -07:00
smhd.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
stbl.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
stco.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
stsc.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
stsd.rs example/copy supports vp9-in-mp4 and example/dump supports fmp4 (#41) 2021-01-26 19:31:32 -08:00
stss.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
stsz.rs fix: minimize assertions in non-test code (#56) 2021-07-12 17:28:39 -07:00
stts.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
tfhd.rs Fragmented boxes (#30) 2020-09-13 00:25:08 -07:00
tkhd.rs fix: minimize assertions in non-test code (#56) 2021-07-12 17:28:39 -07:00
traf.rs Fragmented boxes (#30) 2020-09-13 00:25:08 -07:00
trak.rs Skip serializing edts if Option::is_none. 2020-09-09 21:02:38 -07:00
trex.rs Fragmented tracks (#31) 2020-09-14 18:05:34 -07:00
trun.rs fix: minimize assertions in non-test code (#56) 2021-07-12 17:28:39 -07:00
tx3g.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
vmhd.rs Box summary and to_json traits. (#29) 2020-09-08 22:24:34 -07:00
vp09.rs example/copy supports vp9-in-mp4 and example/dump supports fmp4 (#41) 2021-01-26 19:31:32 -08:00
vpcc.rs example/copy supports vp9-in-mp4 and example/dump supports fmp4 (#41) 2021-01-26 19:31:32 -08:00