mirror of https://github.com/mpv-player/mpv
af_lavcac3enc: fix byte order
Oops. Fixes #1172. CC: @mpv-player/stable
This commit is contained in:
parent
7ae6484cd4
commit
2ffdc0da13
|
@ -232,8 +232,8 @@ static int filter(struct af_instance* af, struct mp_audio* audio, int flags)
|
||||||
|
|
||||||
AV_WL16(hdr, 0xF872); // iec 61937 syncword 1
|
AV_WL16(hdr, 0xF872); // iec 61937 syncword 1
|
||||||
AV_WL16(hdr + 2, 0x4E1F); // iec 61937 syncword 2
|
AV_WL16(hdr + 2, 0x4E1F); // iec 61937 syncword 2
|
||||||
hdr[4] = bsmod; // bsmod
|
hdr[5] = bsmod; // bsmod
|
||||||
hdr[5] = 0x01; // data-type ac3
|
hdr[4] = 0x01; // data-type ac3
|
||||||
AV_WL16(hdr + 6, len << 3); // number of bits in payload
|
AV_WL16(hdr + 6, len << 3); // number of bits in payload
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue