aws_transcriber: fix CRC check

This was broken when porting to crc 2, based on:

https://github.com/mrhooray/crc-rs/issues/62#issuecomment-850591181

> 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>
This commit is contained in:
Mathieu Duponchelle 2021-09-03 23:37:14 +02:00
parent 434fe8e56f
commit 626df03961

View file

@ -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 {