mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
fix: reed_solomon_vcn decode_rs return type (tuple → bytes extraction)
This commit is contained in:
parent
6962a7fcac
commit
1d91183d1b
1 changed files with 2 additions and 1 deletions
|
|
@ -115,7 +115,8 @@ def decode_rs(encoded_data: bytes, nsym: int = 32) -> Tuple[bytes, int]:
|
|||
"""
|
||||
codec = reedsolo.RSCodec(nsym)
|
||||
decoded, _, errata_pos = codec.decode(encoded_data)
|
||||
return bytes(decoded), len(errata_pos) if errata_pos else 0
|
||||
corrections = len(errata_pos) if errata_pos else 0
|
||||
return bytes(decoded), corrections
|
||||
|
||||
|
||||
def protect_frame(frame_bytes: bytes, redundancy_factor: int = 2) -> bytes:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue