Message ID | 1474291548-17810-2-git-send-email-erkki.seppala.ext@nokia.com |
---|---|
State | Changes Requested |
Headers | show
Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.134 with SMTP id o128csp999945vsd; Mon, 19 Sep 2016 06:26:12 -0700 (PDT) X-Received: by 10.194.148.99 with SMTP id tr3mr27392528wjb.173.1474291572900; Mon, 19 Sep 2016 06:26:12 -0700 (PDT) Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id f70si18802989wmd.26.2016.09.19.06.26.09; Mon, 19 Sep 2016 06:26:12 -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=@nokia.onmicrosoft.com; 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 dis=NONE) header.from=nokia.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DB555689E05; Mon, 19 Sep 2016 16:25:52 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20114.outbound.protection.outlook.com [40.107.2.114]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E7698689D88 for <ffmpeg-devel@ffmpeg.org>; Mon, 19 Sep 2016 16:25:45 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Z7DpoEsgcaVKBKf6fhA+BOCRTqY15Z0DWcq9X2GqgLE=; b=sIblk9s89kCxG1h48Sj12rqTKGDcaQvUMMQjt4KN+O0QrB6uLTmzitIjLjnF8Sh2+ZyYl15e4S5YLxkla3h8ciloa/cDISyTyxRYCvKYA+6weoxiB6nugKeoVwbBzCslTMI3laQxP3Kbi/2UMewyDpMG4GTdKpgs3+mjGTXaL7c= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=erkki.seppala.ext@nokia.com; Received: from erkkise-laptop.vincit.intranet (131.228.2.24) by HE1PR0701MB2537.eurprd07.prod.outlook.com (10.168.129.15) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.619.10; Mon, 19 Sep 2016 13:25:58 +0000 Received: by erkkise-laptop.vincit.intranet (Postfix, from userid 1000) id 96D654F0F3E; Mon, 19 Sep 2016 16:25:48 +0300 (EEST) From: =?UTF-8?q?Erkki=20Sepp=C3=A4l=C3=A4?= <erkki.seppala.ext@nokia.com> To: <ffmpeg-devel@ffmpeg.org> Date: Mon, 19 Sep 2016 16:25:24 +0300 Message-ID: <1474291548-17810-2-git-send-email-erkki.seppala.ext@nokia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474291548-17810-1-git-send-email-erkki.seppala.ext@nokia.com> References: <1471943019-14136-1-git-send-email-erkki.seppala.ext@nokia.com> <1474291548-17810-1-git-send-email-erkki.seppala.ext@nokia.com> MIME-Version: 1.0 X-Originating-IP: [131.228.2.24] X-ClientProxiedBy: DM5PR18CA0040.namprd18.prod.outlook.com (10.173.208.26) To HE1PR0701MB2537.eurprd07.prod.outlook.com (10.168.129.15) X-MS-Office365-Filtering-Correlation-Id: f77be24c-16a4-4ac2-8ae7-08d3e0907e3b X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2537; 2:0Ini0fp25ZsfHUi0IwjeCM7ucnHPn91syL5WYo5G2UrgI58DDZrR2euihzH5sOcVGaCmMImTcK2BG7nV5C9ToVAFW9p5Q2Wd7n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OqoZ2gWS/1z09QjXzrMFykvRw+eFp2+RvHNxGUiRMv1uIf2z/g13UH8k2mwyzIiXMWOht+ZuceRhcvM+2bBVcBAcTSQd5NNOVbunIy7bRFsp5FLRMXiVIlGBZTNKNYdJntUd/eF7E1/BF0/NOx310swsBO3HABc7hUXwW4ieCXDuZytTA4RDYcaSKKPk4qNKI2MqnvGp6fduST4wjsyuPemGWkRE= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2537; 20:7vvoCtmYwnHjj7anvL5lFH5NCAyDjqMA0puN6qjjyrnqxxHYtuC5UpV3ToYkRYhvEr7DwFxl0y6d1llvl7XuZLvh3Aumrf9fDmQxGOXhkExD/gvYEgOO0E9QO2QoTmVJmga8+ZT68IRZpHpvcb7pfu0C54SJAqaPeDz/C3DORdjCaFssDcXUddzjrFyaAS6qWsgmk90yyKcp4hfDqt2Beh3h08Rf15RWusH88PbfC9DZO04bq5I4o3/4umQP3DxgRnALk2O1RhCy6HBE1u4oMX70dAi1xnWnB/XgICS7g2vVaK8OemNVj93X5TjnkLeB60aHhUKtj/L4qc719QExz9BwAlOBhdid9MLX5JC5xolLfcjU0lLTlyTqNdMupaEpqm+WpNBne0+RCAn/A2PQFOjtoF6KOltMr1Gsx4RkDfMFBavA6rRcDufJEmQhIv8TxbvV179QmpJGqwI7ynaCGWPzoLxM0T1lWMgL3LxlCTe+zzoLCcoUnjuwH5IpyXPg X-Microsoft-Antispam-PRVS: <HE1PR0701MB2537918F06F58AEEAE8EB807BAF40@HE1PR0701MB2537.eurprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(82608151540597); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:HE1PR0701MB2537; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0701MB2537; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2537; 4:Fu/wv7MLph6DrzRXR3N1ltefqdR5mWAx0D1/VV8+uxa3MtbkYJealulc3e5B/eNcwv9qMmE/S3ALBoK9qTz2SoUUqkjD/2WpQw5Ud562FdOwYN/QlgHiI/YB6Ac9N/ofV/Rm6tEW8aM+Be0aK+JSl/6w/9UuL2YraKbWzaL0lwYx8yp4IXexofNq/qNWAtnJQ1RV/lnPI/UKlz4Tf5CLjEsB/gGvZLcSCAB9DpIfVb6B2CU1onpzXQMoyMNHMMI2gDZc0NGCmEEiHNjRWdshyBMfn78RBXoXNLFqUlomgYnVegAeCtM9nEhWtt0rvVI0iTp+yZcNYVPF3vpO8zYAn5K/nPoUC07gHCleVUaZXO3htUKqJGXLMRM6awWxya8usZ/5d0IbWQLw5EaL/anWnvLJVQXY2aRkxXpDW1n8keMzLQHBDTfVFIwDDgWAJ8iMQrIZgziOS3l1np3DjHyskg== X-Forefront-PRVS: 0070A8666B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(105586002)(42186005)(4326007)(47776003)(4001430100002)(122856001)(6116002)(3846002)(5820100001)(586003)(97736004)(68736007)(52956003)(2906002)(2351001)(305945005)(7846002)(229853001)(7736002)(106356001)(66066001)(50466002)(50226002)(76176999)(50986999)(90966002)(110136003)(450100001)(107886002)(81156014)(46386002)(2870700001)(33646002)(36756003)(101416001)(23676002)(86362001)(5660300001)(19580405001)(2950100001)(189998001)(45336002)(92566002)(81166006)(8676002)(19580395003); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB2537; H:erkkise-laptop.vincit.intranet; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nokia.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA3MDFNQjI1Mzc7MjM6dWsvVVVCU2hVQlNyZHpob3B3KzJCZXB3?= =?utf-8?B?c2FmMVhDZUZSeVB0T1c4NEhnV0xaT2hNQTBHUDZMS3dabFJmM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jiKYT4bbkN3td0gl4WJZDgWki1z6+dAHITMVCDhf8J1BgJMZJsMWtHtaZ50aQkU1CRswSS8dcePhenaxYM92r++WQHGsLqj4+7Qij7Cp6Q4R0hTKK+5TGOXRby2/WT27r1Mktwxk7Fr0hWzDp+V6xtRWvsDhCJuEImwxIqB8LWnYcHIqt/0mDlsS7g==; 5:7YpmOF29VPx0zKdZaJOzaF0qNr8RbVWL2ZV0cT3quawwyq1euT09rE9jgLn1KL9JdMibQZv2VzijTp5ChcEQBMiauuu++mG4MkZUNvpPqG+wkysRTEpmLI8kzd0xi8BrFdHCcAkTSCoG1p+gVNA6pg==; 24:2yj+XeEhIoejgOzl0YbLrYDdf+ahA2QZ/ku0x7SeisqLTC3EDPiSzN2ypsjvbLUH97C9AU5VRGqAjlInkYUnb3EBkn7CDfr3RRYXLoxTsMA=; 7:VtuPWtunf1PW4VRq3xr7vADshAs5NliVLbr7yXHYlPvz+Dfz/avqL57+UAUsYIIbq97xaie6QNbc/PP4Nt9R9ZtBQQeOEwn4OSzyTrjUwNZ4DpCPfiyuMqxmHwsPA/9T81di2Im+myVamY50w3SQljP/TD8kDh78Uw/GKeEtzIYXUrye1udAPClV1hsrkfjRSg8MyFP7PTmcMEKTuSriN0Cg1C5IVud2qs7xQ7CEdI2wy3oMd1M3RZX11H0Es3PHDNn4Gf7AwnytWCH2ML1cElL1JaFGK8sd7q8uai6KozQhE5kfLivKTjDuXHeK+4xM SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2016 13:25:58.4213 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2537 Subject: [FFmpeg-devel] [PATCH v3 01/25] avformat/movenc: mov_write_ftyp_tag: write the major brand as a compatible brand X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <http://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <http://ffmpeg.org/pipermail/ffmpeg-devel/> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <http://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: =?UTF-8?q?Erkki=20Sepp=C3=A4l=C3=A4?= <erkki.seppala.ext@nokia.com>, OZOPlayer <OZOPL@nokia.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> |
On Mon, Sep 19, 2016 at 04:25:24PM +0300, Erkki Seppälä wrote: > when the option "brand" is used. This allows custom brands to end up in > the compatible brands as well. > > Signed-off-by: Erkki Seppälä <erkki.seppala.ext@nokia.com> > Signed-off-by: OZOPlayer <OZOPL@nokia.com> > --- > libavformat/movenc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavformat/movenc.c b/libavformat/movenc.c > index 525d103..571c2a7 100644 > --- a/libavformat/movenc.c > +++ b/libavformat/movenc.c > @@ -4210,6 +4210,8 @@ static int mov_write_ftyp_tag(AVIOContext *pb, AVFormatContext *s) > > avio_wb32(pb, minor); > > + if (mov->mode == MODE_MP4 && mov->major_brand) > + ffio_wfourcc(pb, mov->major_brand); /* write major brand as a compatible brand */ missing length check, this would be writing uninitialized bytes if it was nt 4 bytes long [...]
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 525d103..571c2a7 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -4210,6 +4210,8 @@ static int mov_write_ftyp_tag(AVIOContext *pb, AVFormatContext *s) avio_wb32(pb, minor); + if (mov->mode == MODE_MP4 && mov->major_brand) + ffio_wfourcc(pb, mov->major_brand); /* write major brand as a compatible brand */ if (mov->mode == MODE_MOV) ffio_wfourcc(pb, "qt "); else if (mov->mode == MODE_ISM) {