From 240266d12c543c705311ec98615110e08a07933b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 12 Oct 2014 11:33:35 +0200 Subject: [PATCH] af_lavcac3enc: fix byte order Oops. Fixes #1172. CC: @mpv-player/stable --- audio/filter/af_lavcac3enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/filter/af_lavcac3enc.c b/audio/filter/af_lavcac3enc.c index 18bca8e2cb..a9ec4088eb 100644 --- a/audio/filter/af_lavcac3enc.c +++ b/audio/filter/af_lavcac3enc.c @@ -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 + 2, 0x4E1F); // iec 61937 syncword 2 - hdr[4] = bsmod; // bsmod - hdr[5] = 0x01; // data-type ac3 + hdr[5] = bsmod; // bsmod + hdr[4] = 0x01; // data-type ac3 AV_WL16(hdr + 6, len << 3); // number of bits in payload }