Compare commits

..

1 Commits

Author SHA1 Message Date
acgnhik
159ab3b632 release: 1.8.0 2022-07-17 16:40:31 +08:00
3 changed files with 4 additions and 8 deletions

View File

@@ -1,9 +1,5 @@
# 更新日志
## 1.8.1
修 bug
## 1.8.0
- 重构直播流录制

View File

@@ -1,3 +1,3 @@
__prog__ = 'blrec'
__version__ = '1.8.1'
__version__ = '1.8.0'
__github__ = 'https://github.com/acgnhiki/blrec'

View File

@@ -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 = (