PR #22905 opened by dalecurtis URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22905 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22905.patch
Fixes corruption issues with the sample in this PR. Signed-off-by: Dale Curtis <[email protected]> >From 34928e12ab49bc161fc0e06f4a0a1b01dfe082c0 Mon Sep 17 00:00:00 2001 From: Dale Curtis <[email protected]> Date: Thu, 23 Apr 2026 22:53:31 +0000 Subject: [PATCH] [Wave] Fix issues with unaligned metadata chunks. Fixes corruption issues with the sample in this PR. Signed-off-by: Dale Curtis <[email protected]> --- libavformat/wavdec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 7d701c517a..110c6c645e 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -143,6 +143,10 @@ static int64_t find_tag(WAVDemuxContext * wav, AVIOContext *pb, uint32_t tag1) { unsigned int tag; int64_t size; + int64_t pos = avio_tell(pb); + + if (pos + wav->unaligned & 1) + avio_skip(pb, 1); for (;;) { if (avio_feof(pb)) -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
