Commit graph

37 commits

Author SHA1 Message Date
4bcde7e556
Rename forked mod 2024-09-18 18:10:46 +02:00
Atsushi Watanabe
81d781467d
Unify struct tag parse code (#151) 2021-02-27 21:16:44 +09:00
Atsushi Watanabe
fda12f1b51
Implement SimpleBlockReader (#150)
Co-authored-by: Kevin Wang <kevmo314@gmail.com>
2021-02-27 12:13:59 +09:00
Atsushi Watanabe
f769d2bf7c
Support parsing damaged mkv (#147) 2021-02-17 13:01:07 +09:00
Atsushi Watanabe
1c7994699a
Make unmarshal bench data more realistic (#148) 2021-02-17 12:54:34 +09:00
Atsushi Watanabe
1d0de7b503
Skip invalid elements byte by byte (#145) 2021-02-16 16:35:45 +09:00
Atsushi Watanabe
68acec9a6f
Fix unmarshalling binary element into interface (#142) 2021-02-16 12:35:50 +09:00
Atsushi Watanabe
37fac1b5d0
Fix EBML Lacer/Unlacer (#140) 2021-02-16 10:44:51 +09:00
Atsushi Watanabe
210ec35ce4
Support unmarshal into nil map (#139) 2021-02-15 23:41:55 +09:00
Atsushi Watanabe
366bbf8857
Add option to ignore static length unknown element (#138) 2021-01-09 23:14:54 +09:00
Sebastian Brückner
fc0baec53d
Add all matroska tags (#136) 2021-01-07 10:01:48 +09:00
Atsushi Watanabe
938207e01b
Support marshalling/unmarshalling mapped interface (#123) 2020-03-14 21:17:48 +09:00
Atsushi Watanabe
c273fdcc40
Wrap error (#115)
Support Go1.13 error unwrapping.
2019-12-21 12:03:39 +09:00
Atsushi Watanabe
5acd530100
Validate input type of Marshal/Unmarshal (#110) 2019-12-20 12:38:54 +09:00
Atsushi Watanabe
bd8305e49e
Read/Write through channel (#109) 2019-12-20 11:54:07 +09:00
Atsushi Watanabe
57e9553ded
Fix read hook value (#108) 2019-12-20 10:14:19 +09:00
Atsushi Watanabe
05939b6aed
Add ElementType to read/write hook data (#106) 2019-12-19 23:18:11 +09:00
Atsushi Watanabe
84c6582dd5
Expose errors (#96) 2019-12-17 23:23:04 +09:00
Atsushi Watanabe
1502713a57
Fix lacing mode ID (#94) 2019-12-17 00:06:59 +09:00
Atsushi Watanabe
104144e245
Minor refactoring (#92)
Remove unreachable code and add some test cases
2019-12-16 21:52:53 +09:00
Atsushi Watanabe
947b61d8ec
Add Unlacer (#90) 2019-12-16 20:19:54 +09:00
Atsushi Watanabe
637c037ab8
Add original element names of WebM aliases (#88)
Matroska: Timestamp (https://matroska.org/technical/specs/index.html#Timestamp)
WebM: Timecode (https://www.webmproject.org/docs/container/#Timecode)
2019-12-15 17:50:23 +09:00
Atsushi Watanabe
6250d16b53
Support type conversions (#87)
* Support type conversion on encode
* Support type conversion on read
* Fix negative int value read
2019-12-15 15:07:48 +09:00
Atsushi Watanabe
65b6543b92
Fix reading top level elements not in struct (#81) 2019-12-14 19:39:35 +09:00
Atsushi Watanabe
f0a6cf1e03
Call read hook for all elements (#78) 2019-12-14 16:24:03 +09:00
Atsushi Watanabe
87803c4154
Add WithElementWriteHooks option (#77) 2019-12-14 16:14:22 +09:00
Atsushi Watanabe
dd460dbe51
Simplify test data init (#66) 2019-12-07 15:56:20 +09:00
Atsushi Watanabe
5abd026861
Fix EOF handling (#65) 2019-12-07 15:46:22 +09:00
Atsushi Watanabe
627473e61c
Add test cases (#64)
* Test webm.FrameWriter old frame removal

* Test error cases of BlockMarshal/Unmarshal

* Update error message
2019-12-07 15:09:55 +09:00
Atsushi Watanabe
d026b61b81
Add option error handling (#57) 2019-12-06 20:53:15 +09:00
Atsushi Watanabe
02da93bc77
Fix typo (#55) 2019-12-06 14:20:48 +09:00
Shinichi Ishimura
0e6763b0de Add UnmarshalHook (#47)
* Return bytesRead in "readVInt"

* Add UnmarshalHook and a hook "WithElementMap"

* Make hooks functional options

* Fix design of options

* WithElementHooks -> WithElementReadHooks

* Fix comment
2019-11-28 15:57:42 +09:00
Atsushi Watanabe
e16a9a2a53
Fix marshaling/unmarshaling using untagged struct (#38) 2019-09-06 00:12:05 +09:00
Atsushi Watanabe
6d02f2a3a1
Read element ID as VInt (#33)
* Add unmarshal benchmark

* Add marshal benchmark

* Read element ID as VInt
2019-09-02 01:35:21 +09:00
Atsushi Watanabe
75bbd7d144
Update README and license header (#26) 2019-09-01 02:28:06 +09:00
Atsushi Watanabe
c6b9bd9594 Use tag instead of name 2019-08-22 04:23:11 +09:00
Atsushi Watanabe
c6b1f1118c Add EBML Unmarshal 2019-08-22 01:38:36 +09:00