From patchwork Sun Nov 19 02:19:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dave Rice X-Patchwork-Id: 6187 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.94 with SMTP id m30csp2362530jah; Sat, 18 Nov 2017 18:19:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMZou0EupJ/Eb1u18R/wOBaE+w1LoIAZNpixb5qrhMi4zjfqD7ihPhlQgOoa9tgXskaeSHfE X-Received: by 10.223.148.102 with SMTP id 93mr7398729wrq.32.1511057994782; Sat, 18 Nov 2017 18:19:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511057994; cv=none; d=google.com; s=arc-20160816; b=09b03S+2mcLdH7zwHk1BPhjuWXu+42hX2zt9mBTanbf7jmGyt1YfMEw8MuxYJE/qcz j3Omm7+5GBWmfKQTFgwrslqw39BZxGuhBbn8qXkbDRd4Pk5yKcI/YNzPHY25zTjm6Iup yPtgeLza0BgSmJJFSlrauONvWBpLfAC7efkAuS2Gf/hCT4XfGHDW7KSdnXQoxKWBEMPs /TgsgTQx63wCJfiG+OddqeeP7+75XtFAeDsklwqOnVNOicuzz+sSe10XTnIyoUi0e7lp POTntI+s61dxYXBuPVL0v1vhW4utS5lPgjT9s+h7l6s8GAyX/jUX0YM/qAJVxbcvF4XD 690g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:to:date:message-id:mime-version:from :delivered-to:arc-authentication-results; bh=8wKd398a1eZ0n2Yltn9qMwl7h+QxVzyfk6Giopdy7OE=; b=NJqzdRFpyERu7b4DQENSOcFU6bZNGhdbqVYKGBsMjdt/+ZggGRZ5c+/rM24T67esIQ sCMaSjkXiACktKpiP77n7YDhFDFV0WY97KR7lIdfIqsCcW5vP9u/sc9+JaMZwVOYOGq2 bpVGMGREwUKwSF6zjTJi9yNU1melosvUAPI4DNJI9zZygR8uaf8kIYmnHnJcCwgrQDBq EMpJBCBkzQJg7OyyQvQ4SJj8U7lQDy043lX7UMDmVLrwV3NU1IRt9aImZxVYsohxjG/J k9egU5dzR6vtyDRcOE3htIm3FS8LjevmJnLV4eIDdtIC50hAccWpoKEUBUz7xV75gRLG Ix7g== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id u70si4866543wmf.98.2017.11.18.18.19.54; Sat, 18 Nov 2017 18:19:54 -0800 (PST) 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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8C4AE68A141; Sun, 19 Nov 2017 04:19:19 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from server172-2.web-hosting.com (server172-2.web-hosting.com [68.65.122.110]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1D78A68A134 for ; Sun, 19 Nov 2017 04:19:13 +0200 (EET) Received: from cpe-104-162-94-162.nyc.res.rr.com ([104.162.94.162]:47711 helo=[10.0.1.9]) by server172.web-hosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eGFCh-003Fya-RX for ffmpeg-devel@ffmpeg.org; Sat, 18 Nov 2017 21:19:28 -0500 From: Dave Rice Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Message-Id: <8C6F33C2-0A31-45D2-BE08-6EB0D341EA22@dericed.com> Date: Sat, 18 Nov 2017 21:19:27 -0500 To: FFmpeg development discussions and patches X-Mailer: Apple Mail (2.3445.4.7) X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server172.web-hosting.com X-AntiAbuse: Original Domain - ffmpeg.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dericed.com X-Get-Message-Sender-Via: server172.web-hosting.com: authenticated_id: dave@dericed.com X-Authenticated-Sender: server172.web-hosting.com: dave@dericed.com X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched Subject: [FFmpeg-devel] [PATCH 3/4] avformat/movenc: force colr atom for uncompressed yuv in mov 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" From 41da5e48f8788b85dd7a382030bb2866c506cc03 Mon Sep 17 00:00:00 2001 From: Dave Rice Date: Sat, 18 Nov 2017 20:31:27 -0500 Subject: [PATCH 3/4] avformat/movenc: force colr atom for uncompressed yuv in mov MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As required by Appleā€™s TN2162. --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index aaa1dedfd7..86960b19c1 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1978,7 +1978,7 @@ static int mov_write_video_tag(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *tr else av_log(mov->fc, AV_LOG_WARNING, "Not writing 'gama' atom. Format is not MOV.\n"); } - if (mov->flags & FF_MOV_FLAG_WRITE_COLR) { + if (mov->flags & FF_MOV_FLAG_WRITE_COLR || uncompressed_ycbcr) { if (track->mode == MODE_MOV || track->mode == MODE_MP4) mov_write_colr_tag(pb, track); else