From f1fcc3ca5ff7a8d1bc62d0ea28bc9ed87efa4051 Mon Sep 17 00:00:00 2001 From: James Almer Date: Thu, 25 Jul 2024 23:15:34 -0300 Subject: [PATCH] avformat/matroskadec: use AV_WL32A Signed-off-by: James Almer --- libavformat/matroskadec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index aa28a37da4..c8741ff2af 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -4059,9 +4059,9 @@ static int matroska_parse_frame(MatroskaDemuxContext *matroska, (AVRational){1, 1000000000}, (AVRational){1, st->codecpar->sample_rate}); if (discard_padding > 0) { - AV_WL32(side_data + 4, discard_padding); + AV_WL32A(side_data + 4, discard_padding); } else { - AV_WL32(side_data, -discard_padding); + AV_WL32A(side_data, -discard_padding); } }