From patchwork Mon Oct 24 21:54:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 1164 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.133 with SMTP id o127csp2370862vsd; Mon, 24 Oct 2016 15:02:15 -0700 (PDT) X-Received: by 10.194.103.165 with SMTP id fx5mr13275963wjb.188.1477346534975; Mon, 24 Oct 2016 15:02:14 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id de2si18560531wjc.182.2016.10.24.15.02.13; Mon, 24 Oct 2016 15:02:14 -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=@gmail.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=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E5785689CD6; Tue, 25 Oct 2016 01:02:07 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2D85E689C6F for ; Tue, 25 Oct 2016 01:02:01 +0300 (EEST) Received: by mail-vk0-f45.google.com with SMTP id q126so171570342vkd.2 for ; Mon, 24 Oct 2016 15:02:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=+8T1QvuEv30sNXq4jgWoprd+O4Ry9fphTgpncaJz8Lk=; b=0z51fleAniOuZ7EQuf5DeUnhl9MUnMSR+R59Id1HGmcSlOviKvE+xtjwb5KKMrzciI GVnzFu/yJmKtGTLaC8MSX5EkUIXEnzJl4O+Aj1W/Ns+BtoVJrGFpPYvVkMVIVTt/U/1z Wz4Nfm3ZDOEDxX5bpoO6G3BbX5nKljN5E0X7lCie0bvGxfefR8nl6h0e3a0Bp+lE58ch HD+0jhkyC263HMG5h56OytRvZqRTiukZuLTpb74WXNiKrFZyEAWJc0Xb4c+6mowfbKIZ w4XpUPyeO3guVc1fvo9Hz+DEjucS6AXmfbXRVDL0pIwDmw0LwcxSNv+ArCJFlBNrLEq8 nkYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=+8T1QvuEv30sNXq4jgWoprd+O4Ry9fphTgpncaJz8Lk=; b=gcNO5rNE/J3RLV7tUX5icKeev7UK1COa9vjrvDxQz1dQfUQ5luJWrJoPO/jQocbZxb L3EJ+dQG6HuWm2tBxlMiBX6sx1XubYVJ1t5sLifbFj9VPLp88OohgkxMzSnKdIlScSKa j3jh6UyxiHq+UV/y4dhy6seYonDM30gg7vfpe9mluKCxmzSAx5mkUHp2KQNbJCuYZNwe Pi3S+YqANVaZqBKr9UdMzmhk2VIepZYQFa4uHclL/eRiCp9FSDUeQENW1OPmv3vx5AHG iBrgKa2p9pDAmrHIKO4itl0rrpOVqDwu2BpA34fnc1kG9lwNR28pATnrHpQiiF1jEz2t ycDg== X-Gm-Message-State: ABUngvcOd+58T/lCyjHuLiIufigx2lalfXGUkANfN0z3GLeg9X0u+zZyYqSOckju3pGlfOlOhIklgudAOUd/FQ== X-Received: by 10.31.151.78 with SMTP id z75mr12557980vkd.41.1477346079654; Mon, 24 Oct 2016 14:54:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.81.195 with HTTP; Mon, 24 Oct 2016 14:54:39 -0700 (PDT) In-Reply-To: <1477343512-60568-1-git-send-email-zhennihuang@google.com> References: <1476298710-74434-1-git-send-email-zhennihuang@google.com> <1477343512-60568-1-git-send-email-zhennihuang@google.com> From: Carl Eugen Hoyos Date: Mon, 24 Oct 2016 23:54:39 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] mov: add option to ignore moov atoms which are detected in free atoms, so apps can have flexibility to use moov atom not in free atoms as default. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" 2016-10-24 23:11 GMT+02:00 Zhenni Huang : [...] Does the following inlined patch help you? Carl Eugen diff --git a/libavformat/mov.c b/libavformat/mov.c index 357d800..ed099fc 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -4884,6 +4884,7 @@ a.type = avio_rl32(pb); if (a.type == MKTAG('f','r','e','e') && a.size >= 8 && + c->fc->strict_std_compliance < FF_COMPLIANCE_VERY_STRICT && c->moov_retry) { uint8_t buf[8]; uint32_t *type = (uint32_t *)buf + 1;