File tree 3 files changed +15
-5
lines changed
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.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
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
+
7
14
## [ 0.2.3] - 2022-03-28
8
15
## Changed
9
16
- 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
35
42
- Fixed bug in extractusm that causes it to fail when output directory doesn't exist.
36
43
- Fixed bug where program fails when directory exists.
37
44
45
+ [ 0.2.4 ] : https://github.com/donmai-me/WannaCRI/compare/0.2.3...0.2.4
38
46
[ 0.2.3 ] : https://github.com/donmai-me/WannaCRI/compare/0.2.2...0.2.3
39
47
[ 0.2.2 ] : https://github.com/donmai-me/WannaCRI/compare/0.2.1...0.2.2
40
48
[ 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(
264
264
string_padding : int = 0 ,
265
265
) -> bytes :
266
266
if len (pages ) == 0 :
267
- raise ValueError ( "No pages given." )
267
+ return bytes ( )
268
268
269
269
page_name = pages [0 ].name
270
270
keys = set ()
Original file line number Diff line number Diff line change @@ -187,7 +187,8 @@ def open(
187
187
),
188
188
crid [0 ],
189
189
video_channel .header ,
190
- channel_number ,
190
+ len (video_channel .stream ),
191
+ channel_number = channel_number ,
191
192
)
192
193
)
193
194
@@ -207,7 +208,8 @@ def open(
207
208
audio_sink (usmfile , usmmutex , audio_channel .stream ),
208
209
crid [0 ],
209
210
audio_channel .header ,
210
- channel_number ,
211
+ len (audio_channel .stream ),
212
+ channel_number = channel_number ,
211
213
)
212
214
)
213
215
@@ -444,7 +446,7 @@ def _process_chunks(
444
446
},
445
447
)
446
448
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 ]
448
450
elif chunk .payload_type == PayloadType .METADATA :
449
451
video_ch [chunk .channel_number ].metadata = chunk .payload
450
452
@@ -471,7 +473,7 @@ def _process_chunks(
471
473
},
472
474
)
473
475
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 ]
475
477
elif chunk .payload_type == PayloadType .METADATA :
476
478
audio_ch [chunk .channel_number ].metadata = chunk .payload
477
479
You can’t perform that action at this time.
0 commit comments