[FFmpeg-devel] [PATCH 3/4] avformat/matroskadec: use AV_WL32A
James Almer
jamrial at gmail.com
Fri Jul 26 05:15:34 EEST 2024
Signed-off-by: James Almer <jamrial at gmail.com>
---
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);
}
}
--
2.45.2
More information about the ffmpeg-devel
mailing list