From patchwork Fri Oct 7 09:13:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawid Kozinski X-Patchwork-Id: 38596 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4d9:b0:9c:f4b:4e41 with SMTP id 25csp173989pzd; Fri, 7 Oct 2022 02:13:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74DypwsEZR7fWB25r54LNoIqI0hH5toiwdTdxWgRvj7bL4X6SPHb5YMNaDtTq07RHTaZzl X-Received: by 2002:a17:907:2ced:b0:773:6f77:f10f with SMTP id hz13-20020a1709072ced00b007736f77f10fmr3263981ejc.34.1665134034546; Fri, 07 Oct 2022 02:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665134034; cv=none; d=google.com; s=arc-20160816; b=cqkehCrhtmRCjTXFuFEsGBES2suCG2efQ6K9fTrToUqK8z6qh0/fJJ8v5bwTuOPpn9 54UvgHd4OaOflsdSIkJx9BpGrjCQexF6xUv3hD2usT7H56ulZHga7bkYtnmB4VKZTEqB p+zhacHdLpOPR7FBQ2026EyblIOSNBPCX71Tdkr+d2Uu9fmmwzymutIEmGxHuckkNSAe Zs3TjS5RC+pfhAB3mXnfu2p9F6IeDYOFkP7UlpZQbAHk3IesZtaYwKr+Jci0Dgy7cXs8 /CVwjdvQLr46l5E+TfeZjEA5JimLfO90sU1pwHXnv6UX0GSh/GANJ8rtkdvtK0SQs6HN 3qXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:cms-type:mime-version :message-id:date:to:from:dkim-signature:dkim-filter:delivered-to; bh=kmMvGyuenR+nBfHnPWkJPlV2A3VePVP+2WKfAAn5GOI=; b=UWoplnCI91N8tUo2w5/b3D0fkQZiypUpX65SRn8PNk9ulrVD9dyAKctZpYcD3DU23p BT6j5LcKWSr9OK5sl/p1KQNW30MZBUawhpmu+W0VBxbnHQ1yclhaXTITB2wdKSqtjxp6 9PpSUgGxceZYs53wkcRr/eYsmlF0Q4CMS2/cdrf0ZEkFi8XbfkuZ6WgOQ7mH+eMHUyYP QwlvGIapOo9HR3iLhGMj6QgYcu3i/9mT+POgtlEHaIM6wLPHOLWBlUZ0BXaa6hswnLYZ Emioj1jUNgnmn9qAJbD8yFYnYIcnGqETh0bM+9eyRv6gZuvfSniZMaVdPmZYSm83nOx3 2M3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=gMiomhGJ; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id i33-20020a0564020f2100b004551a7e54acsi1618726eda.74.2022.10.07.02.13.54; Fri, 07 Oct 2022 02:13:54 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=gMiomhGJ; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 580C568BC13; Fri, 7 Oct 2022 12:13:52 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C006E68BB66 for ; Fri, 7 Oct 2022 12:13:50 +0300 (EEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20221007091350euoutp0209f4568a0b3110b3d16e017def07e5e2~bvpQLEhdT2052420524euoutp02Y for ; Fri, 7 Oct 2022 09:13:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20221007091350euoutp0209f4568a0b3110b3d16e017def07e5e2~bvpQLEhdT2052420524euoutp02Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1665134030; bh=f2mdicmifmazMTixqAy1DHb5CP7N/A0FmCwGogj0lpM=; h=From:To:Cc:Subject:Date:References:From; b=gMiomhGJTy6xUX3g27/L8qzgRkY8Uwx3X2O/9sedKLg7ZfxqyQqsyLXItSnwMqvnl iIlUyrqTkH++kBz7nYqqQK0qDNUQRx3uHIfQm1LvxceapUEMWwemHt9GITo1bhMlID eBxKo3HyoWlJv66pccppdyFIvdsASuRTCKoaX14M= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20221007091349eucas1p2d5b2fc68e39acd7488a3a4641e5e02c2~bvpP0yw9a3040430404eucas1p2e; Fri, 7 Oct 2022 09:13:49 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 09.71.19378.DCDEF336; Fri, 7 Oct 2022 10:13:49 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20221007091349eucas1p21f7c21fb2a3fea3ef5696b337e38263f~bvpPZSHLu3038030380eucas1p2m; Fri, 7 Oct 2022 09:13:49 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221007091349eusmtrp2e00fc5fad3e4fe99ca67c5d2b33b300a~bvpPYqvnH0179201792eusmtrp2U; Fri, 7 Oct 2022 09:13:49 +0000 (GMT) X-AuditID: cbfec7f5-a35ff70000014bb2-1d-633fedcd8a18 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 06.7F.07473.DCDEF336; Fri, 7 Oct 2022 10:13:49 +0100 (BST) Received: from AMDN5164.EU.corp.samsungelectronics.net (unknown [106.210.132.171]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221007091349eusmtip2816b2bb42c6d7f179a38e8a27b2f3f76~bvpPDlQkj2373723737eusmtip2y; Fri, 7 Oct 2022 09:13:49 +0000 (GMT) From: Dawid Kozinski To: d.frankiewic@samsung.com, ffmpeg-devel@ffmpeg.org Date: Fri, 7 Oct 2022 11:13:39 +0200 Message-Id: <20221007091339.897-1-d.kozinski@samsung.com> X-Mailer: git-send-email 2.37.3.windows.1 MIME-Version: 1.0 X-Unsent: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFIsWRmVeSWpSXmKPExsWy7djP87pn39onG/ybbWTx5doXZouV336z WHz7dIbZgdnjz6LNLB59W1YxBjBFcdmkpOZklqUW6dslcGV0btvBVjCNr+LFh1lMDYyvuLoY OTkkBEwkmro+sXYxcnEICaxglPiwfR4LhPOFUWLxr0uMEM5nRokp0x6zdzFygLUsOhIMEV/O KPF063WoonYmiaOPHrOAzGUT0JV4+eERE4gtImAqcbJ5LxuIzSygLbHu7ncwW1ggUeLK+tlg 9SwCqhLTTt9nBFnAK2Ap0d/rCXGepsSELXPAxvAKCEqcnPmEBSLOLbFu1iVWiJHyEs1bZzOD 3CAh8Jdd4umye6wQRS4SV548ZIewhSVeHd8CZctI/N85nwnimWKJQ/0OEGaNxKEf6RAV1hJv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0uzUvXS87P 3cQIDNltx35u3sE479VHvUOMTByMhxglOJiVRHh37rRLFuJNSaysSi3Kjy8qzUktPsRoCnTq RGYp0eR8YNTklcQbmhmYGpqYWRqYWpoZK4nzehZ0JAoJpCeWpGanphakFsH0MXFwSjUwucV4 bUzvSUiaLSXlf6r02v3SaP6XTdZBAooX9P8pqR9RkEqMbqp21rv4obK97ktPBc/lDUwnJZ83 bD+qcfK8kbaz1hTOGWYzl+mphayZcUxKLlLzvpyh/W8/o+9RaW4Cf0Pn/9pueLdYckfEvSM6 +tu7tz/TVGQLELIO0jZ5L2gn4ZZ64KWNnXnI/XOMS4417kgSf+06zy9H55ns3JTk0LrO0/Nl soRiF/lv2vSbaUn/wR2n2T9rPtQMXfhogrlW3T2dup/Vt6YqvtvA/53Hh2G6zlX3sKvW/xkP Hcx4abum8Ozhya5Jvz5Hpf56V/hv+p3e1/dfsl8z1P27NzX8YWHY9a2HXa90HlG4FTVdiaU4 I9FQi7moOBEANIS74+ICAAA= X-CMS-MailID: 20221007091349eucas1p21f7c21fb2a3fea3ef5696b337e38263f X-Msg-Generator: CA X-RootMTR: 20221007091349eucas1p21f7c21fb2a3fea3ef5696b337e38263f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20221007091349eucas1p21f7c21fb2a3fea3ef5696b337e38263f References: Subject: [FFmpeg-devel] [PATCH v13 8/9] avformat/mov_demuxer: Extended MOV demuxer to handle EVC video content 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: Dawid Kozinski Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: bnfZogrAy1Ei - Added evc extension to the list of extensions for ff_mov_demuxer Signed-off-by: Dawid Kozinski --- libavformat/demux.c | 1 + libavformat/mov.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/demux.c b/libavformat/demux.c index 2dfd82a63c..f3ebe4d09b 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -120,6 +120,7 @@ static int set_codec_from_probe_data(AVFormatContext *s, AVStream *st, { "mp3", AV_CODEC_ID_MP3, AVMEDIA_TYPE_AUDIO }, { "mpegvideo", AV_CODEC_ID_MPEG2VIDEO, AVMEDIA_TYPE_VIDEO }, { "truehd", AV_CODEC_ID_TRUEHD, AVMEDIA_TYPE_AUDIO }, + { "evc", AV_CODEC_ID_EVC, AVMEDIA_TYPE_VIDEO }, { 0 } }; int score; diff --git a/libavformat/mov.c b/libavformat/mov.c index 1f436e21d6..435c9d905e 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2502,6 +2502,7 @@ static int mov_finalize_stsd_codec(MOVContext *c, AVIOContext *pb, case AV_CODEC_ID_VP9: sti->need_parsing = AVSTREAM_PARSE_FULL; break; + case AV_CODEC_ID_EVC: case AV_CODEC_ID_AV1: /* field_order detection of H264 requires parsing */ case AV_CODEC_ID_H264: @@ -9130,7 +9131,7 @@ const AVInputFormat ff_mov_demuxer = { .long_name = NULL_IF_CONFIG_SMALL("QuickTime / MOV"), .priv_class = &mov_class, .priv_data_size = sizeof(MOVContext), - .extensions = "mov,mp4,m4a,3gp,3g2,mj2,psp,m4b,ism,ismv,isma,f4v,avif", + .extensions = "mov,mp4,m4a,3gp,3g2,mj2,psp,m4b,ism,ismv,isma,f4v,avif,evc", .flags_internal = FF_FMT_INIT_CLEANUP, .read_probe = mov_probe, .read_header = mov_read_header,