Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b0537086e | ||
|
|
a4d61c1f29 | ||
|
|
17ea3ffc04 |
@@ -1,5 +1,9 @@
|
||||
# 更新日志
|
||||
|
||||
## 1.8.1
|
||||
|
||||
修 bug
|
||||
|
||||
## 1.8.0
|
||||
|
||||
- 重构直播流录制
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
__prog__ = 'blrec'
|
||||
__version__ = '1.8.0'
|
||||
__version__ = '1.8.1'
|
||||
__github__ = 'https://github.com/acgnhiki/blrec'
|
||||
|
||||
@@ -77,19 +77,19 @@ def fix() -> Callable[[FLVStream], FLVStream]:
|
||||
|
||||
def update_delta(tag: FlvTag) -> None:
|
||||
nonlocal delta
|
||||
assert last_tag is not None
|
||||
assert last_video_tag is not None
|
||||
assert last_audio_tag is not None
|
||||
|
||||
if is_video_tag(tag):
|
||||
assert last_video_tag is not None
|
||||
delta = (
|
||||
last_video_tag.timestamp - tag.timestamp + video_frame_interval
|
||||
)
|
||||
elif is_audio_tag(tag):
|
||||
assert last_audio_tag is not None
|
||||
delta = (
|
||||
last_audio_tag.timestamp - tag.timestamp + sound_sample_interval
|
||||
)
|
||||
|
||||
assert last_tag is not None
|
||||
if tag.timestamp + delta <= last_tag.timestamp:
|
||||
if is_video_tag(tag):
|
||||
delta = (
|
||||
|
||||
Reference in New Issue
Block a user