Message ID | 1472643361-10118-12-git-send-email-erkki.seppala.ext@nokia.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.134 with SMTP id o128csp328011vsd; Wed, 31 Aug 2016 04:37:21 -0700 (PDT) X-Received: by 10.28.169.203 with SMTP id s194mr9397434wme.95.1472643441126; Wed, 31 Aug 2016 04:37:21 -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 g7si43524035wjp.241.2016.08.31.04.37.19; Wed, 31 Aug 2016 04:37:21 -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 C7347689ADD; Wed, 31 Aug 2016 14:36:12 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0119.outbound.protection.outlook.com [104.47.2.119]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 935EB689941 for <ffmpeg-devel@ffmpeg.org>; Wed, 31 Aug 2016 14:36:03 +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=9FpbGSjuY6UpZgXdVC/gDSPZP9bwLgyoGxSF4QqQY+o=; b=sXu8r6rc4ogbbGaLCBqZnt9c4jG0UPOKY901NMymU65TvBWYAFlxEIVoWKATIrDrfA0tSMWnUeCF50YKrwblY2UCKM8NQCymW5W8jo9jw9OOvf6PBDLpxQtP2ar6JiF/v6aBokVslOqfvJQ8h6iRvHReIkvIcfI2cWbj0CL/Tq4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=erkki.seppala.ext@nokia.com; Received: from erkkise-laptop.vincit.intranet (131.228.2.27) by AM5PR0701MB2531.eurprd07.prod.outlook.com (10.169.153.151) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9; Wed, 31 Aug 2016 11:36:08 +0000 Received: by erkkise-laptop.vincit.intranet (Postfix, from userid 1000) id E71574CB954; Wed, 31 Aug 2016 14:36:01 +0300 (EEST) From: =?UTF-8?q?Erkki=20Sepp=C3=A4l=C3=A4?= <erkki.seppala.ext@nokia.com> To: <ffmpeg-devel@ffmpeg.org> Date: Wed, 31 Aug 2016 14:35:54 +0300 Message-ID: <1472643361-10118-12-git-send-email-erkki.seppala.ext@nokia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472643361-10118-1-git-send-email-erkki.seppala.ext@nokia.com> References: <1471943019-14136-1-git-send-email-erkki.seppala.ext@nokia.com> MIME-Version: 1.0 X-Originating-IP: [131.228.2.27] X-ClientProxiedBy: AM2PR03CA0042.eurprd03.prod.outlook.com (10.160.207.52) To AM5PR0701MB2531.eurprd07.prod.outlook.com (10.169.153.151) X-MS-Office365-Filtering-Correlation-Id: 954fdefa-5a50-410a-8599-08d3d1930040 X-Microsoft-Exchange-Diagnostics: 1; AM5PR0701MB2531; 2:3f4UvEVXx47joYKrvtOO1fjGP8FGfAoklSN/Tbx2ClQZIY+lbwWnTDd5JKBhOypUO3A3xq79RXCSyXVgA3F4jvQXFyErdofPTzuoCmeRnPpiK48FifkClY/PAXy1TYyz1s/M55fb/dom9YGPbvDGRwSr1NXVbz0Hx7iGItAOzqgL4T4ZfoCgQOuwvdk8AYBZ; 3:2xZfwQATzRGqL/FmOaLYYJ6fNCfS6XNswrw5MXOMCmLP40ESRBuLlm3UnTLJGxwcTfePuwmCRx8nfLwRzrc0S/msHya8RG+kcs0fnNkZMfB+AS7IuFy8sNN2pQa258nS X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM5PR0701MB2531; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0701MB2531; 25:CeZIhDGB7yW2ti3GeKM8sh6b1uJBNk1Hzv3/NipSj7Rscx922iNRkvp24mWJibBmk5W71YB/72IqKZEQrIVck88IUw+UdgPVb/kapSBs12kwopq5H83qt23/+nisRxm1G4UsnbVCnENpY840AB3ed63BoGW6NVCZUSHOp+Lwo6fG38iFjaoHSwGrIUGfQrSeGoDhFIdBdu8FgaeZNosqiBNBC/D4SfNMHS9M6ra7rJLofCZqyxHkUCP771WAI7UacBxPBG8cuZjxeKbbltVujeWJ3bUp2IcOD77pQdj1nDcs0qrFXRHJcyXbuLiVl134UIW6rMU+8cIUdrgdvT/OMFIqr3yxcOOTGn36nSlQhVp59Sxlu7ssO4HKER84LOnYp15LCW611y+EfEbIindwg7KNplnVa2dgZ6BDFB52DN/m5XNgADAwSpTc5QWXx/Z6aOOWYuRxEI2rDoKdnhIGv7eCpKX80HR8d0S3y+XagKL9BVWCMdoVkiYfQlzXN2bYHvNu1wOKsLctAGWELr9whnSz9IRDhaWc/t+ky8b0eLJVLdcRbCXZ1nB3mo/AQ64LLZD4xdTCZKwL6qHsXFZHI1Id10nESM1HKVsenFF6qoyXjqs56pbrOe0YbSkQSDydlTjzw0fC9IplEVaMnMAoB8aZXrMhwghSF9f/OgwSIlprXuBwQshfy3y2ykLRtVArnrh905jKluuAcuXOEN1ZgNuXRpHyhw1FxR71d0m8KCg= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0701MB2531; 31:0N3GuFm8p5IqsE/209s3T+b8Z5impwzBmna0CQVCTaNuKatmCcy99nYYyIUCDFAc7LqoSaiDCoY8yQMUQ7K4UzZK27LF3RLgusqEUSXV+U186e7FplhD01fkzW9DyjZwx5oUKQOLBOWeKaBG/BR08+sTw4/yRlRIWubQVBvxEjbwZUStEbc4muuU6+auY6VU6qPnYdJnljC0q2TkA7139dvWM5DNXlmORQa4aUELL/0=; 20:YQ+AAo/UjrhAEs6qoRjc4K6jvzbRXcfbYaZrBinT707On0KeORQvQ1A2Vw81gyr/bJOU/JPKba5APRaiROaOh87cuduS5lAhxFz+FcMhakBOuYXlBNYsmYVzr1O6RklnHx2h4nffZusMHBdlzQlNRCjxMFWIJ3KYJ+ooLTCQAo0ImtMCutX2L9LjYZtOVV5iEpx9ZJxMZHHuY4nyllzOLwvTgndGC7/YSwiWXsCbpe3v6gTC2mrzIoaZRjat0XiPAqMuVD+bBJDhJ7UahshcSn/f4V5A6eTsoYcB9afQkriBa2JoTVTx9ff6PXW6IMb1VQ6CDrsghYD8envTvw8rtlhsuZ4P1sTw7acTeUCw3AAsSw4Km+X2T6teE/cdZdTss8rb0S2IW3yNwNnUYhI8tZM6QkKAh89iJHCDNilrFyJRpo5Lm7OlSvLwIMIr5z5wC8AZSTMWeFDxnjAPCQm+8QHNR8dykhGYITaYmznzjbEOzVpCSDa73vWXNHmNcOyD X-Microsoft-Antispam-PRVS: <AM5PR0701MB2531C33563FC1BC4DD305BB9BAE30@AM5PR0701MB2531.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:AM5PR0701MB2531; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0701MB2531; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0701MB2531; 4:Marab/VkvsN+NOFUQoi8QpkOegiYQvH8XHEh12o75Y9J38VJ3Qu5AakBPAtuPhCo1xnJ4oRJiFjoGTJe879tynJxAzpur2IT3kjbheYbzB2SUICQwbcVMkjLvVytXFjLk8ExAMLHWsFnTWoPWR0qTixmVlU4VuZWLpIvmFn1alKbDk9IC2UZ6HR0O3k9SCjzGnRS7jH5XLpreaPu5I7TjTYFlAvCyABS0EQymZA4JDdXMBlw48AnSL85+KREiwUoFtX/k0K6+j/h4G+iDQs4a3C1Y9vqDWBUV+k8Rx6ET0/tCAOQ1AeqbpGLfdhhYH33nYWzsni6FtsAYheAQuVsz6g59HNb/dQF2w4CIm9lhTLCvSjXHdsQYj5h8zylzPEd/+/JBTJksQ6AB201tFGMQXMeZaEHtgXfrM3DGrrpKAbRb5SC/gD2wDz/g+VR3Kjqaq1XazRLCrFnE7Dx4ruqdA== X-Forefront-PRVS: 00514A2FE6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(5660300001)(50226002)(7736002)(50466002)(45336002)(19580405001)(68736007)(5820100001)(46386002)(106356001)(19580395003)(2351001)(8676002)(229853001)(122856001)(105586002)(450100001)(81166006)(81156014)(7846002)(42186005)(33646002)(2906002)(97736004)(586003)(4001430100002)(3846002)(110136002)(50986999)(107886002)(52956003)(189998001)(36756003)(4326007)(2950100001)(101416001)(2870700001)(90966002)(305945005)(76176999)(23676002)(66066001)(92566002)(47776003)(6116002)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0701MB2531; 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?MTtBTTVQUjA3MDFNQjI1MzE7MjM6QTNJbnJJMUo2emUzT2libTZxdW5nVzh3?= =?utf-8?B?aW1HNkVWNHZDT1FOL3A5SURpbjU1dWVaWVZpbDFqV1RLaTVBdndLM2hDbjZE?= =?utf-8?B?N2NoM25XRkRNTHFZcmQ3b3BHT28yQ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TbgL3ws6UNhnynmqOD1bk3ak1BGmMqu0a4LPoZBCBkMVyBkuKpzFR6au1UrrC3uZ+pxOP0WS51o4ugHwuhG3BAEKSMHZWSViEX4uZ9OfwJuNL4e4BLC3sCICePEU/BbneuIYidB+A==; 5:U4E6T3WE1jEiybzw6WKNiX3FknC5bn7FFBTblRXvudTGKrrsKuFTTl1HgaVbxcfx17vQqnFyA3RHAEaHK5a6tt+CyAZ4rWfctVA+TY1lp2EInTxdb1rvYOUT3+EclIL6guSxY099Aun9xor+z8BCYw==; 24:X79hR833BpTbTXT0qG94NHrxVAbw4cQT8yvjtCd3rprj2FEU8nl8tmGdLtCB+rF93+hDLxKQJTGzORDG7J37gAcyUSPu6EJUSnqmUTN6+bk=; 7:PlJzMww3TVtkeLUSlhC3FsHjRZbrdQ7WTQQnsF611/reViz9agNYEVO2+zyJ20YbPlgEvcUcKsHQR7Nk3RroOeMw2C5FYcC5kesWjdKBNFq9JF6FDZaMw3MHNzAeAhERUIAelowhUDWekwJSoK9ZgPhhiyisImSQKrmHQiQeVg6shdJ22Ka6Q85OR4zLTidb2xNYnSRh+hPQzHz2h8h9Q7qU+mjzryGInga8Qwb5dBejZUGBi9/peH8Oxx460FMq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2016 11:36:08.3597 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0701MB2531 Subject: [FFmpeg-devel] [PATCH v2 11/18] avformat/mov: basic support for identifying (and reading) timed metadata 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> |
diff --git a/libavformat/mov.c b/libavformat/mov.c index 97bbdb9..1012b3c 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1789,12 +1789,18 @@ static int mov_codec_id(AVStream *st, uint32_t format) id = ff_codec_get_id(ff_codec_bmp_tags, format); if (id > 0) st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; - else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA || - (st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE && - st->codecpar->codec_id == AV_CODEC_ID_NONE)) { - id = ff_codec_get_id(ff_codec_movsubtitle_tags, format); - if (id > 0) - st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE; + else { + if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA || + (st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE && + st->codecpar->codec_id == AV_CODEC_ID_NONE)) { + id = ff_codec_get_id(ff_codec_movsubtitle_tags, format); + if (id > 0) + st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE; + } + if (id <= 0 && + st->codecpar->codec_type == AVMEDIA_TYPE_DATA) { + id = ff_codec_get_id(ff_codec_metadata_tags, format); + } } }