mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
avcodec/ac3_parser: recognize LE bitstream variant
This commit is contained in:
parent
ebc8806b9f
commit
9e0ddb5e80
@ -201,6 +201,12 @@ static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info,
|
|||||||
AC3HeaderInfo hdr;
|
AC3HeaderInfo hdr;
|
||||||
GetBitContext gbc;
|
GetBitContext gbc;
|
||||||
|
|
||||||
|
if (tmp.u8[1] == 0x77 && tmp.u8[2] == 0x0b) {
|
||||||
|
FFSWAP(uint8_t, tmp.u8[1], tmp.u8[2]);
|
||||||
|
FFSWAP(uint8_t, tmp.u8[3], tmp.u8[4]);
|
||||||
|
FFSWAP(uint8_t, tmp.u8[5], tmp.u8[6]);
|
||||||
|
}
|
||||||
|
|
||||||
init_get_bits(&gbc, tmp.u8+8-AC3_HEADER_SIZE, 54);
|
init_get_bits(&gbc, tmp.u8+8-AC3_HEADER_SIZE, 54);
|
||||||
err = ff_ac3_parse_header(&gbc, &hdr);
|
err = ff_ac3_parse_header(&gbc, &hdr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user