From patchwork Mon Mar 27 10:49:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawid Kozinski X-Patchwork-Id: 40865 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:7a30:b0:df:834d:2c1a with SMTP id t48csp1221425pzh; Mon, 27 Mar 2023 03:49:55 -0700 (PDT) X-Google-Smtp-Source: AKy350YZpxiusZ5LwhcIohCFCYyBkO9SaDpLLAbEu4vjJYJmRvZeC8upZmP3wmPk3lQ8tLaBjM8L X-Received: by 2002:aa7:c98b:0:b0:4fe:9374:30d0 with SMTP id c11-20020aa7c98b000000b004fe937430d0mr10681350edt.39.1679914195508; Mon, 27 Mar 2023 03:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679914195; cv=none; d=google.com; s=arc-20160816; b=MVNSgWgoXoPT7J5hil0+SQmpw8k9RSld7eva4frY/cIla3M4Lb7/4SUcwK278nGO6s DYvtfGsg+ldU/9gSJ60HGcPsENfSL7sUFF9d6LfbjYhXyr9d92Jbs+tFi/zNgQdK/E8s +o/j2hEeGEYy+QNqI4IE59Qh1ay/XhJdAHFeuOMAzRcAMsT0UII8RCbc3Gu4weByIke0 MCSBIdi67P40S0kh19IWBIIk5aVRPZOA7AhttReSrJvjDCyK89i2hZWxnE8uwiKb0+4a bqZH4R+zMRfGG5VIRyB9vRpIWQwjQ7yhXKfRtreU3KL3aL3mEK16Io2PoSRkFlmJTU4v OLEA== 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=bFFAdHE12XPRw7vqksyrItcadROyyB12DTxjkQKWxxQ=; b=cpdeOvOMwjLO9G+QQjQEH41k7ZU4CbXub0AahN4NjbGb5GFJ5dx8dIR53Yic/TZqLM gZ3VNmr4lP8ey9GHjMrjHde8ulfZbEAS4QmtXUzfTtFNgnUXF477BcgRHeETRob+7mvl L/hZzLtYBz/JzrYz0vPlyGbusmXptxZKSP1dpXslnQHywsvMrdIBF5XvdChfHAYBFMn+ rcxwLmQW0VYo+9cSWHNBmYLPCrKfnR6KcHXexnd2LSnDVh5jcML4o0cL/o180LQULdks GeAYAc06ceqBY9WelxQShfSH/p6KSN+r4VftynMSm62VW6c8xOAgiUSJBp4J1821WtSg LU2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=DamRiakt; 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 g18-20020a50ee12000000b004fd2a8b4962si27306423eds.132.2023.03.27.03.49.55; Mon, 27 Mar 2023 03:49:55 -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=DamRiakt; 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 61CBE68CACA; Mon, 27 Mar 2023 13:49:53 +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 59F3368CACB for ; Mon, 27 Mar 2023 13:49:47 +0300 (EEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20230327104946euoutp02b2a3cfd8e1576d9ef2997cd719ab1dbd~QQQ1ovtu01182911829euoutp02t for ; Mon, 27 Mar 2023 10:49:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20230327104946euoutp02b2a3cfd8e1576d9ef2997cd719ab1dbd~QQQ1ovtu01182911829euoutp02t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1679914186; bh=mhGVWwUJJILmpkzXaJ1bYgU4uSVaZc0U+49QAUDhUC0=; h=From:To:Cc:Subject:Date:References:From; b=DamRiaktciGrMVhVYKCUP5oBxwDa+uZleGcFSk3JGESxjUQgV03oPLmL9XlUQ91rj JLGg2S9xIXPFOF7V1Qz5rkqpnILl38El1jlgU7PodxR9kNLIAyFTC9nhDzu66XHK29 24jA+V6ok5BASCN7BTP3F4JTk/1NorHnB/rGEHIA= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230327104946eucas1p2513c657f3e42351e2274a0a5d3a851b2~QQQ1fbtug0783307833eucas1p2-; Mon, 27 Mar 2023 10:49:46 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id DE.E2.10014.AC471246; Mon, 27 Mar 2023 11:49:46 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20230327104946eucas1p1778bce4f0ecd557255a7be7c04f3bcaf~QQQ1K1Pr21526915269eucas1p1_; Mon, 27 Mar 2023 10:49:46 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230327104946eusmtrp2198083e8ab46a4d133084e1f027b26d7~QQQ1KTna90291602916eusmtrp2I; Mon, 27 Mar 2023 10:49:46 +0000 (GMT) X-AuditID: cbfec7f5-b8bff7000000271e-59-642174cab503 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 27.E4.09583.AC471246; Mon, 27 Mar 2023 11:49:46 +0100 (BST) Received: from AMDN5164.EU.corp.samsungelectronics.net (unknown [106.210.132.171]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230327104945eusmtip1540b70f460b1f727c48005bd8cbdaa29~QQQ01oTq62483624836eusmtip1W; Mon, 27 Mar 2023 10:49:45 +0000 (GMT) From: Dawid Kozinski To: d.frankiewic@samsung.com, ffmpeg-devel@ffmpeg.org Date: Mon, 27 Mar 2023 12:49:35 +0200 Message-Id: <20230327104935.730-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+NgFnrFIsWRmVeSWpSXmKPExsWy7djPc7qnShRTDBrmqlp8ufaF2WLlt98s Ft8+nWF2YPb4s2gzi0ffllWMAUxRXDYpqTmZZalF+nYJXBkNNysK7vBWTPx4h7WBcTtXFyMn h4SAicTdO21sILaQwApGial9BV2MXED2F0aJB72TWCCcz4wS7V/mssJ0PLjfygaRWM4o8W3l ZFYIp51JYvvXWywgVWwCuhIvPzxiArFFBEwlTjbvBdvBLKAtse7udzBbWCBRYvffR2BTWQRU Jf5fWsYOYvMKWErMv/CRBWKbpsSELXOYIOKCEidnPoGKc0usm3WJFWKmvETz1tnMIEdICPxk l2h/O5kRoshFYuXmWVANwhKvjm9hh7BlJP7vnA80lAPILpY41O8AYdZIHPqRDlFhLfG28Tgj SJgZ6IT1u/Qhwo4Sn08fYYOo5pO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IsSbklhZlVqUH19UmpNafIjRFOjWicxSosn5 wMjJK4k3NDMwNTQxszQwtTQzVhLn9SzoSBQSSE8sSc1OTS1ILYLpY+LglGpgCrnS7TAx6nrc YneTiI3Rgcf7ou4sXvf18o5Vx54Fc7jV9a/Vml1yvuyah8/6lj3Lju+x/MfwlDHciqdv8bRH uzoN06Ywzbkbe7g38Mm1kGZ1Zy2z2VV7Z/39ufTKwoLb/X0PxZo//uW7H/hwycSkOM7DwgEz 1qjq/Ft+MnPajmdLxdmOn1BL/rz3scCB+W+sKsV33Jryd9P3bT7B21jcNua7Sc/OOf7Na/WX vzKvVpcevxN8Y9a9c9W/l6ybtaij+pTgkbovX0MXfpBwui7yMuqM3JwrO5bsVW89/07PZe6z t7d/9Dmd9zBjSr9kY1e0IKJkgQ33oxqWmHlNr298mtfv+eHrA/kp0jM/M5b+WCXeoMRSnJFo qMVcVJwIAAXs7RTkAgAA X-CMS-MailID: 20230327104946eucas1p1778bce4f0ecd557255a7be7c04f3bcaf X-Msg-Generator: CA X-RootMTR: 20230327104946eucas1p1778bce4f0ecd557255a7be7c04f3bcaf X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230327104946eucas1p1778bce4f0ecd557255a7be7c04f3bcaf References: Subject: [FFmpeg-devel] [PATCH v17 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: Ked2fwSk0dCg - Added evc extension to the list of extensions for ff_mov_demuxer --- 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 b19ab86d08..031d17dab8 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 057fd872b1..3d5c432697 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2647,6 +2647,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: @@ -9305,7 +9306,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,