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 633FA4E47C for ; Tue, 11 Mar 2025 16:55:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5AE0568E18F; Tue, 11 Mar 2025 18:55:27 +0200 (EET) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 68E2F68E165 for ; Tue, 11 Mar 2025 18:55:21 +0200 (EET) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-6fead015247so42520487b3.2 for ; Tue, 11 Mar 2025 09:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741712119; x=1742316919; 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=WFfeHeulUyqMa2sJ0s3+rvjToicrTy73pyojIlnH8e4=; b=m5fOceY4uSZ2Y8UPVKkEg1VhcdTDSnEMoO/XsHqndckMyDykFze7rZR61lfGv3kj12 CaaeNpF+wZSOl3oix8JXmi/yTUNi8zLOyIoHT5gImhWHiHIXpUO0ClYumKE20X+uERb2 dg7lYfitNoimq8qvh1gq49DOcmlc3fUaGqj2YNd1E3sW0OqT33V/3whup2GTUiwa/k9o IUQ9KnArdyMlQmC73cm6PMkHR9wMzr/mKcKxwavyRKj1a2flPbi8XBuFV/oLUe37KMLd bwxtyQ/W2CWAopAEiLNFSyR/QjdAJyBgNOp0D0ksSAxxooqtBEYvRLminCETKNgUcDZd ay/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741712119; x=1742316919; 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=WFfeHeulUyqMa2sJ0s3+rvjToicrTy73pyojIlnH8e4=; b=GfzMSb+XQ7lZyRpg+/sVJ/M0vORsDlJD0/O037JMGWzojM2al31dVaGoFt4p9YyqyT W45A0DbJD07SxOLXnJIWXUuh+B87bAhtlTHwF3QHVQo8yO7neTtHLw013hvfxAaWYm4v C+99Z6f2KOjcZ3Sh/bJf2aLqNBNMfj4ED62m0JMVyWQ5hAk+TeJ5mh0aMX61kazOeoCF TXpQGMqlcwozOPUkJnv8S2W9slhejmf/7kW2ghtlrc979Jdof5Ug9Mr/uzbqgXSblzKL w1p2h8qB8DA9SRpV/M0zcUlGzdzveqiZ7dnI/N/2yL0z3gyOYkcZkJHmAq6ZStbNdFXf HiFA== X-Gm-Message-State: AOJu0YytV0hV1rxnfbvUTWK0U279HuZf2biJOkgYc+uRVzSaWKw/Bp1Z KFCt839bVFwa9D7x7qD2L4NpXOaA78VYSU6IuRhrmo3ov+JrjvBbmY179Nep X-Gm-Gg: ASbGncsHZ+UKnrjCKuMDoZPRGmOmk2fc2ZJD+MA9TYTBGaJVhHcSCXjvdOx8kny3YbF qIiaFzOVXX5vdiMefwTdZZbTpEkQ8KnFVMQtjDfDHI+CmP8vwSeIwpx1Qou4OsugVJt+rMoPZxh 2Xg1wQRvHazeGyiB90T5eOG2/f24RZeUlg0cIj7Zs19F+oKA5hY3Mf8z7Jr6fWm+IJvs1IXQ6Wd RIYft81tGx+eB2LvpkV6gOO8Jqol3+sXUL+7Tdt8WCRkyG6GN2lEsunWdxnpKTst219rqcxmp2D rq/ZVJ40ukco+Ns/kJ316a+flFxmiafdwpGeQi3B7cMSliA7d6L000/B21C8lwn7mDCYSIyJgaS M+qP8rPTH X-Google-Smtp-Source: AGHT+IH+YyuwCaSwdqi89xStkjVLDUOvfqOMXlTlCnQN12G4keA0nHCoQWPbQpMCFQhMthHzQ7Z0uw== X-Received: by 2002:a05:690c:6813:b0:6ef:48ac:9d21 with SMTP id 00721157ae682-6febf3c252amr256503597b3.24.1741712119273; Tue, 11 Mar 2025 09:55:19 -0700 (PDT) Received: from localhost.localdomain ([2607:fb90:ee62:1559:4ce8:9cd:68c0:bf98]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6feb2c64b57sm27544217b3.119.2025.03.11.09.55.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 11 Mar 2025 09:55:18 -0700 (PDT) From: Romain Beauxis To: ffmpeg-devel@ffmpeg.org Date: Tue, 11 Mar 2025 11:55:05 -0500 Message-Id: <20250311165513.17834-1-romain.beauxis@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v8 0/8] Properly decode ogg metadata in ogg/{vorbis, flac, opus} chained bitstreams 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: This is a series of patches to allow proper decoding of ogg metadata in chained `ogg/vorbis, `ogg/flac` and `ogg/opus` streams. ## Changes since last version: * Moved textual reference output for tests to test/ref/fate * Updated test binary to only output stream metadata when AVSTREAM_EVENT_FLAG_METADATA_UPDATED flag is set. Romain Beauxis (8): libavcodec/decode.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet extra data, attach them to the next decoded frame. tests: Add stream dump test API util. tests: Add chained ogg/vorbis stream dump test. libavformat/oggdec.h, libavformat/oggparsevorbis.c: Factor out vorbis metadata update mechanism. libavformat/oggparseflac.c: Parse ogg/flac comments in new ogg packets, add them to ogg stream new_metadata. tests: Add chained ogg/flac stream dump test. libavformat/oggparseopus.c: Parse comments from secondary chained streams header packet. tests: Add chained ogg/opus stream dump test. libavcodec/decode.c | 20 +++ libavformat/oggdec.h | 14 ++ libavformat/oggparseflac.c | 21 +++ libavformat/oggparseopus.c | 13 +- libavformat/oggparsevorbis.c | 25 ++- tests/Makefile | 4 + tests/api/Makefile | 2 +- tests/api/api-dump-stream-meta-test.c | 179 +++++++++++++++++++++ tests/fate/ogg-flac.mak | 11 ++ tests/fate/ogg-opus.mak | 11 ++ tests/fate/ogg-vorbis.mak | 11 ++ tests/ref/fate/ogg-flac-chained-meta.txt | 13 ++ tests/ref/fate/ogg-opus-chained-meta.txt | 27 ++++ tests/ref/fate/ogg-vorbis-chained-meta.txt | 17 ++ 14 files changed, 358 insertions(+), 10 deletions(-) create mode 100644 tests/api/api-dump-stream-meta-test.c create mode 100644 tests/fate/ogg-flac.mak create mode 100644 tests/fate/ogg-opus.mak create mode 100644 tests/fate/ogg-vorbis.mak create mode 100644 tests/ref/fate/ogg-flac-chained-meta.txt create mode 100644 tests/ref/fate/ogg-opus-chained-meta.txt create mode 100644 tests/ref/fate/ogg-vorbis-chained-meta.txt -- 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".