From: Hendi <finalcountdown72@googlemail.com> To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH] avformat/mov: Add support for uuid-based senc box Date: Fri, 9 Jun 2023 22:35:12 +0200 Message-ID: <79da1bee-27e5-aa8d-f35c-35228b03d8a7@googlemail.com> (raw) [-- Attachment #1: Type: text/plain, Size: 9 bytes --] Attached. [-- Attachment #2: 0001-avformat-mov-Add-support-for-uuid-based-senc-box.patch --] [-- Type: text/plain, Size: 1599 bytes --] From eca7929274b9bfd7c5aa8a76177dafaa57ab91a5 Mon Sep 17 00:00:00 2001 From: Hendi <hendi48@freenet.de> Date: Fri, 9 Jun 2023 01:46:30 +0200 Subject: [PATCH] avformat/mov: Add support for uuid-based senc box In PIFF-branded mp4 files, the senc data comes in a uuid box. Signed-off-by: Hendi <hendi48@freenet.de> --- libavformat/mov.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index 2e4df42256..1cfa14e7b4 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -6256,6 +6256,8 @@ out: return ret; } +static int mov_read_senc(MOVContext *c, AVIOContext *pb, MOVAtom atom); + static int mov_read_uuid(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; @@ -6274,6 +6276,10 @@ static int mov_read_uuid(MOVContext *c, AVIOContext *pb, MOVAtom atom) 0xff, 0xcc, 0x82, 0x63, 0xf8, 0x55, 0x4a, 0x93, 0x88, 0x14, 0x58, 0x7a, 0x02, 0x52, 0x1f, 0xdd, }; + static const AVUUID uuid_piff_senc = { + 0xa2, 0x39, 0x4f, 0x52, 0x5a, 0x9b, 0x4f, 0x14, + 0xa2, 0x44, 0x6c, 0x42, 0x7c, 0x64, 0x8d, 0xf4 + }; if (atom.size < AV_UUID_LEN || atom.size >= FFMIN(INT_MAX, SIZE_MAX)) return AVERROR_INVALIDDATA; @@ -6356,6 +6362,8 @@ static int mov_read_uuid(MOVContext *c, AVIOContext *pb, MOVAtom atom) return ret; if (!sc->spherical) av_log(c->fc, AV_LOG_WARNING, "Invalid spherical metadata found\n"); + } else if (av_uuid_equal(uuid, uuid_piff_senc)) { + mov_read_senc(c, pb, atom); } return 0; -- 2.40.0.windows.1 [-- Attachment #3: Type: text/plain, Size: 251 bytes --] _______________________________________________ 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".
reply other threads:[~2023-06-09 20:35 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=79da1bee-27e5-aa8d-f35c-35228b03d8a7@googlemail.com \ --to=finalcountdown72@googlemail.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git