From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 1E9C44E4E6 for ; Sat, 3 May 2025 17:03:45 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8D95168B485; Sat, 3 May 2025 20:03:41 +0300 (EEST) Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 00E76687D98 for ; Sat, 3 May 2025 20:03:34 +0300 (EEST) Received: by mail-ot1-f48.google.com with SMTP id 46e09a7af769-7304efb4b3bso1783329a34.0 for ; Sat, 03 May 2025 10:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746291813; x=1746896613; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=C3vWKxkOQHut8oqGfj12cty2AdAnKq4v2sFx5lJtHRw=; b=TH1lY2IoAXteqVodlHEuYnTFaF/rWGBK3t/hYXHP/FxBvyGjizMEbGIVL4xtFctJun jT5IsiwSmHbDzkETmpMsnRH5nr/5Y9I3JaHqdDktoFsjizLZiaqhPYWiyq1rYoPE1E6q dbkZmrS/ixeMEkijrIjHkS9+gP/gdt6BFT3WtAVkpEGbzD2NODD5zBveGj+fo41LgTN/ SkNGW9jYoob8wyniw2rzvW7rFHLLzDM3+fTmXOvfKaTPFbgziRnyvS6hSzWzXE7tYHlW KmPIy8fZHLeWXBNM9VxzGsfwyBPD4MEbCte95NFaxfyxlrRmLJwerbxxrMTzXOWNP43B DMKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746291813; x=1746896613; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C3vWKxkOQHut8oqGfj12cty2AdAnKq4v2sFx5lJtHRw=; b=kUa2NJPEy/fhoYmXRok4WKJjCNA6uoAN8yJQD7/v8PvIpTACQTHMdlG9EgZpHff0d0 V381ZPboZ3yKxAGbT8yzyhPyv+qwlV8ZM0pcE3kLC5nYMWkrTfatrVZa1WWBgSp3A+6b TKbyidz0fOwG7j02wRFmAjOcqs1eamc8ZXk0LEUGeh3CkewBVXOprZqo9EBl6Bi+njcj vFQ1ovXNFWzUe/7rPzu4z1pnf3EbhE6jtPpiqQl1rkVZl7NA9N3jJsNT6TVQX0FmXG64 99yT8M0S5df0/r9LygQiAELvQNz5iFCDDip3H0wGCBnXJ00HKR7WO0AdVfu2tZqK7bw6 L5Jg== X-Gm-Message-State: AOJu0Ywpc2YNpAsEX/K0KNCpvMiYj3zlQ962qhJtydOL78pUoM4GBscD RXoP788c9qcW+Cj+Kdgy8V9YNBWT795GP2E6u0/8sFmsdrQFFfywErYdeXdo X-Gm-Gg: ASbGncuEeqJR9BOscYCVxR8AF39rpGtor66PMEHT9fBsIs2X4K6GwpTUymKVoKcoEcN leE5k3ML5n61JXb2NIKNQRc7iFHG2cKaShi6w6FoocSF72It89sPFOo/epXzuYOaySUXUzHAT+u zorUg+rejqnYvqS/TVOpcl4mfg95OJA+w+Lo7KJuUZqT/Nk+vtZthxlp2Q2pi5iDH5wnXzltiUF p4VRoxUYuYuml6LvCKa+w6EWXSYTuP3GbXE5LvNL7O1gcpj9onN4t2MlVwWR5QTHwWpIAcn6ZOM 9K+JXHV/ePS2kBSEW+UYEwNrAQZyMayvOk7cu4set4eb96lhPAa34YYR5HgQgQdtvgQrrQbouX/ CHVXzh2Zs2PZd5yR8tQ== X-Google-Smtp-Source: AGHT+IF9fEjT9yU6t01hglr12UGXPdx/qxqIOfi3RpsHU2qQTY6damPu9YocWk2fvKwbrW06XDoasQ== X-Received: by 2002:a05:6830:4410:b0:72b:aa98:9af2 with SMTP id 46e09a7af769-731e56795a9mr2220744a34.25.1746291812976; Sat, 03 May 2025 10:03:32 -0700 (PDT) Received: from macbookpro.lan (ip72-211-125-114.no.no.cox.net. [72.211.125.114]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-731d34daaedsm917311a34.51.2025.05.03.10.03.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 03 May 2025 10:03:32 -0700 (PDT) From: Romain Beauxis To: ffmpeg-devel@ffmpeg.org Date: Sat, 3 May 2025 12:03:27 -0500 Message-Id: <20250503170329.46135-1-romain.beauxis@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 0/2] Remove chained ogg stream header packets from demuxer X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Romain Beauxis Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: These patches remove the ogg header packets from secondary chained ogg streams from the demuxer. To do so, the packet demuxing function is modified to explicitely tell the demuxer when skip header packets Also, the opus packet demuxing function is adapted to properly copy extra data from the new chained streams so that decoding can keep happening. The diff from the test output makes it possible to follow what the changes do to the extracted streams. ## Changes since last revision: * The base tests are now in the codebase * Split the last commit in two, one for the API change and one for the corresponding codec-specific use of it. Romain Beauxis (2): libavformat/oggdec.c: Changing the packet() callback API/Return value ogg/{vorbis,flac,opus}: Remove header packets from subsequent ogg streams from the demuxer output. libavformat/oggdec.c | 26 ++++++++++---------- libavformat/oggdec.h | 6 +++++ libavformat/oggparseflac.c | 28 ++++++++++++++++++++-- libavformat/oggparseopus.c | 11 +++++++++ libavformat/oggparsevorbis.c | 11 +++++++-- tests/ref/fate/ogg-flac-chained-meta.txt | 2 -- tests/ref/fate/ogg-opus-chained-meta.txt | 1 - tests/ref/fate/ogg-vorbis-chained-meta.txt | 3 --- 8 files changed, 66 insertions(+), 22 deletions(-) -- 2.39.5 (Apple Git-154) _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".