This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 1d7b14f61d avformat/wavenc: Omit JUNK for non-seekable -rf64 auto
1d7b14f61d is described below

commit 1d7b14f61d66fdf18f15204c613df9d65396c319
Author:     Daniel Verkamp <[email protected]>
AuthorDate: Wed Jul 22 00:05:54 2026 -0700
Commit:     Daniel Verkamp <[email protected]>
CommitDate: Thu Aug 13 22:05:33 2026 +0000

    avformat/wavenc: Omit JUNK for non-seekable -rf64 auto
    
    The `-rf64 auto` option requires seeking in order to go back and convert
    the reserved header space into a ds64 chunk when switching from RIFF to
    RF64. If the output is not seekable, then it isn't possible to make use
    of the space reserved with the JUNK chunk, so it is more reasonable to
    just produce a regular RIFF with no JUNK chunk in this case, equivalent
    to the `-rf64 never` option.
    
    Signed-off-by: Daniel Verkamp <[email protected]>
---
 libavformat/wavenc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c
index a8debf8faa..58579d2449 100644
--- a/libavformat/wavenc.c
+++ b/libavformat/wavenc.c
@@ -305,6 +305,10 @@ 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 */

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to