From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id D0D9C4C230 for <ffmpegdev@gitmailbox.com>; Wed, 2 Apr 2025 18:30:12 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A218568A14A; Wed, 2 Apr 2025 21:29:58 +0300 (EEST) Received: from mail-oa1-f52.google.com (mail-oa1-f52.google.com [209.85.160.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2892A687D66; Wed, 2 Apr 2025 21:29:47 +0300 (EEST) Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-2c787506611so8053fac.3; Wed, 02 Apr 2025 11:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743618585; x=1744223385; 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=OzwnDIEZw5hLpUyYM895jBFQP3cug6DvGX056W+qsGk=; b=bvMSZp/tk7Y1xFOdTBYD8T5n2hOxTJ4cYMSjJmUKzOvZ4selkE71TuGNf5pBqanJEX iJlDkbIQf95v3c4r1VrQ2xfE9jP+ehpNhemag/aOJi7rIYqP6bg5UiwqmB22phA8m671 QFfivekAXtE7YX/xnCIn6B+X+xhbAwgdH/+3IHfLC60BVc0Yyk0PmAZuWq+sdkV5csA1 0GtLuDep1jWOwjlODY5gidO52Hm610QrIR1vImdOC/15AFxbFgho4JAgYsfLFDSGSm2k Z9Ylh/0WCtikFqMthjHLB3YTTLervmn4els9YtEP4/UnLCtRYzj5CbSqDV6oIm/ZTKas fwlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743618585; x=1744223385; 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=OzwnDIEZw5hLpUyYM895jBFQP3cug6DvGX056W+qsGk=; b=WTtbJZLAQ56aV0YF5mMxDFQmsyjAKXGuFNlDbJ2LJgI1QArq2aXIowr9AA2zh829A8 XtwHejuor1cxpAB2iQ82Y19Ke1FSrhGmcQR6ZiY0y/7v2uBoE7oa9C/nKqz9Nq16H4KU 2zJgjniVJE/liNvhyjB/W2NIX56pXuAj7mG8tFNFdsK3BJU3HN+dDxoLsNADrCMyidkn s2GbGdDJZStQOwiC/1lfRXwhzA6FUneY61TJ+SORbO/sAFW1ihF3OQxVctejSF8oQxJS J/qxEuuqa2tFGj2FKr9dZtEHONumdbJM2GCsQNWfk0m1dgH2k4qlQWWpwZ36WeM3Sg3Q K1bg== X-Forwarded-Encrypted: i=1; AJvYcCW98nGZVj2LWIM5VjiJW9OSqmf2LHXf/wXNNAXsMj32wHl67yaxmJSPuDFAa4s/v1sDQ9yQxRHpsNlHHZSGTw0=@ffmpeg.org X-Gm-Message-State: AOJu0YxKqjTvtlJkREsIyDvGEXmg7sAmygpqPR/T+GiXgbcEhwUVRxWJ JqXDI6b1oJSnmQq11imrd0Crqr3lyOlvra2L9FBDCIOvgFSygvoH/mUxAnGc X-Gm-Gg: ASbGncszzdwW/KodbapdBfr6LUIlTd74MzZK8y/Ji3uAgr3/whi2S+em8ZJXEm0W6CX DCCTpjdjuGNL0bVOGD5wvy/4wPj8+daDn2n1b6ZlYZ++vMJCrnqu0RkQmdVoD7xypol8JR/1xcV 6oqOo4yi/kDqaNFJXrdmpVcpoO3xby/5RO7c9WuXdMgQ/WmR/YB2tAKMMdAqHV0MPSF6nsY7x5t t9C/isUyoNXw//fqRNtv9FuhnfuFsodZWj33rJBwAqR88XUcuON83Wy9fiv78iBLcanGD+48W5H 8X4iYfAWcEftsOrHd51ub99T7DtViaLXZ4wZ3fLCeAgYIEOGH21wPHOC4ev6TPWF8frrOCuJKvg blXf0MhNqrvl3 X-Google-Smtp-Source: AGHT+IHvD7Q9BDV6hKoTZww3Q4REmbtfFePT0QYYYqgdxRk+wkG9b0MYsOjNqG434EKk++UIJZpGzw== X-Received: by 2002:a05:6871:3588:b0:297:c04:9191 with SMTP id 586e51a60fabf-2cbcf477b9cmr10095699fac.3.1743618585111; Wed, 02 Apr 2025 11:29:45 -0700 (PDT) Received: from mac.lan (ip72-211-125-114.no.no.cox.net. [72.211.125.114]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-72c58267f54sm2349862a34.55.2025.04.02.11.29.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 02 Apr 2025 11:29:44 -0700 (PDT) From: Romain Beauxis <romain.beauxis@gmail.com> To: ffmpeg-devel@ffmpeg.org Date: Wed, 2 Apr 2025 13:29:32 -0500 Message-Id: <20250402182940.29726-1-romain.beauxis@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v10 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 <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: samples-request@ffmpeg.org, Romain Beauxis <romain.beauxis@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> Archived-At: <https://master.gitmailbox.com/ffmpegdev/20250402182940.29726-1-romain.beauxis@gmail.com/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.com> This is a series of patches to allow proper decoding of ogg metadata in chained `ogg/vorbis, `ogg/flac` and `ogg/opus` streams. FATE samples for the new tests can be found here: https://www.dropbox.com/scl/fo/xrtrna2rxr1j354hrtymq/AGwemlxHYecBLNmQ8Fsy--4?rlkey=lzilr4m9w4gfdqygoe172vvy8&dl=0 ## Changes since last version: - Rebased against latest `master` to fix a merge conflict Romain Beauxis (8): libavcodec/decode.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet extra data, attach them to the next decoded frame with the same PTS. 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 | 130 +++++++++++++++ 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 | 175 +++++++++++++++++++++ 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, 464 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".