Skip to content

Commit

Permalink
aws_transcriber: fix CRC check
Browse files Browse the repository at this point in the history
This was broken when porting to crc 2, based on:

mrhooray/crc-rs#62 (comment)

> CRC_32_BZIP2 is a different algorithm from CRC_32_IEEE, try CRC_32_ISO_HDLC instead.

The correct algorithm for replacing checksum_ieee is not CRC_32_BZIP2.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/555>
  • Loading branch information
MathieuDuponchelle committed Sep 3, 2021
1 parent 434fe8e commit 626df03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rusoto/src/aws_transcriber/packet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use nom::{
use std::borrow::Cow;
use std::io::{self, Write};

const CRC: crc::Crc<u32> = crc::Crc::<u32>::new(&crc::CRC_32_BZIP2);
const CRC: crc::Crc<u32> = crc::Crc::<u32>::new(&crc::CRC_32_ISO_HDLC);

#[derive(Debug)]
struct Prelude {
Expand Down

0 comments on commit 626df03

Please sign in to comment.