File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 0.2.4] - 2022-03-28
8+ ## Changed
9+ - pack\_ pages function now return an empty byte when given an empty list instead of throwing an exception.
10+
11+ ## Fixed
12+ - Fixed GenericVideo initialization in Usm open method.
13+
714## [ 0.2.3] - 2022-03-28
815## Changed
916- Improved USM probe handling of unknown chunks
@@ -35,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3542- Fixed bug in extractusm that causes it to fail when output directory doesn't exist.
3643- Fixed bug where program fails when directory exists.
3744
45+ [ 0.2.4 ] : https://github.com/donmai-me/WannaCRI/compare/0.2.3...0.2.4
3846[ 0.2.3 ] : https://github.com/donmai-me/WannaCRI/compare/0.2.2...0.2.3
3947[ 0.2.2 ] : https://github.com/donmai-me/WannaCRI/compare/0.2.1...0.2.2
4048[ 0.2.1 ] : https://github.com/donmai-me/WannaCRI/compare/0.2.0...0.2.1
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ def pack_pages(
264264 string_padding : int = 0 ,
265265) -> bytes :
266266 if len (pages ) == 0 :
267- raise ValueError ( "No pages given." )
267+ return bytes ( )
268268
269269 page_name = pages [0 ].name
270270 keys = set ()
Original file line number Diff line number Diff line change @@ -187,7 +187,8 @@ def open(
187187 ),
188188 crid [0 ],
189189 video_channel .header ,
190- channel_number ,
190+ len (video_channel .stream ),
191+ channel_number = channel_number ,
191192 )
192193 )
193194
@@ -207,7 +208,8 @@ def open(
207208 audio_sink (usmfile , usmmutex , audio_channel .stream ),
208209 crid [0 ],
209210 audio_channel .header ,
210- channel_number ,
211+ len (audio_channel .stream ),
212+ channel_number = channel_number ,
211213 )
212214 )
213215
@@ -444,7 +446,7 @@ def _process_chunks(
444446 },
445447 )
446448 elif chunk .payload_type == PayloadType .HEADER :
447- video_ch [chunk .channel_number ].header = chunk .payload
449+ video_ch [chunk .channel_number ].header = chunk .payload [ 0 ]
448450 elif chunk .payload_type == PayloadType .METADATA :
449451 video_ch [chunk .channel_number ].metadata = chunk .payload
450452
@@ -471,7 +473,7 @@ def _process_chunks(
471473 },
472474 )
473475 elif chunk .payload_type == PayloadType .HEADER :
474- audio_ch [chunk .channel_number ].header = chunk .payload
476+ audio_ch [chunk .channel_number ].header = chunk .payload [ 0 ]
475477 elif chunk .payload_type == PayloadType .METADATA :
476478 audio_ch [chunk .channel_number ].metadata = chunk .payload
477479
You can’t perform that action at this time.
0 commit comments