avformat/matroskadec: use AV_WL32A

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-07-25 23:15:34 -03:00
parent 09de979ff6
commit f1fcc3ca5f
1 changed files with 2 additions and 2 deletions

View File

@ -4059,9 +4059,9 @@ static int matroska_parse_frame(MatroskaDemuxContext *matroska,
(AVRational){1, 1000000000}, (AVRational){1, 1000000000},
(AVRational){1, st->codecpar->sample_rate}); (AVRational){1, st->codecpar->sample_rate});
if (discard_padding > 0) { if (discard_padding > 0) {
AV_WL32(side_data + 4, discard_padding); AV_WL32A(side_data + 4, discard_padding);
} else { } else {
AV_WL32(side_data, -discard_padding); AV_WL32A(side_data, -discard_padding);
} }
} }