Commit 3116ce4f3e for ffmpeg
commit 3116ce4f3e4b6323dfc3d8a2437affceed80176e
Author: Hunter Kvalevog <hunter@kvog.sh>
Date: Thu Sep 24 16:59:35 2026 -0500
avformat/wavenc: move RF64 seekability check to wav_init
Signed-off-by: Hunter Kvalevog <hunter@kvog.sh>
diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c
index 55d702fb2c..c9ced4a1bd 100644
--- a/libavformat/wavenc.c
+++ b/libavformat/wavenc.c
@@ -158,6 +158,9 @@ static av_cold int wav_init(AVFormatContext *s)
wav->rf64 = RF64_NEVER;
}
+ if (wav->rf64 == RF64_AUTO && !(s->pb->seekable & AVIO_SEEKABLE_NORMAL))
+ wav->rf64 = RF64_NEVER;
+
return 0;
}
@@ -321,10 +324,6 @@ static int wav_write_header(AVFormatContext *s)
AVIOContext *pb = s->pb;
int64_t fmt;
- if (wav->rf64 == RF64_AUTO && !(s->pb->seekable & AVIO_SEEKABLE_NORMAL)) {
- wav->rf64 = RF64_NEVER;
- }
-
if (wav->rf64 == RF64_ALWAYS) {
ffio_wfourcc(pb, "RF64");
avio_wl32(pb, -1); /* RF64 chunk size: use size in ds64 */