From patchwork Mon Dec 3 01:19:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jan_Ekstr=C3=B6m?= X-Patchwork-Id: 11257 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 60F6F44E043 for ; Mon, 3 Dec 2018 03:19:21 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0A47268A357; Mon, 3 Dec 2018 03:19:22 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E66EE68A257 for ; Mon, 3 Dec 2018 03:19:15 +0200 (EET) Received: by mail-lj1-f177.google.com with SMTP id n18-v6so9773070lji.7 for ; Sun, 02 Dec 2018 17:19:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=uReAUGQBLjAJiq9+f46ci2txPUYz44mSkkuCqJOBX7o=; b=AleeOwKW0vNm6q5sKd+OaqVe2iIMVIzB1BUEYLCbZ+kwI3GlbDlMWVbILiE0YdK2wY vmz5xraNO4rddSH1PBTPo0XO1sM4hNLDFKf9PlohfIaGvT6BCU/EIjlJhMbnC831aj99 V4VU6EuxbeP4EX1af2YuEA5dkPSsvl561OXT1c1ZfYlNlmGsHd8ij52JYlyAGr+BR2Wj LtiGkfpXCPcENB5tS0BkPofw0FcgIhJeaH2De0p2oI8s29uyX03MhrwYqaov5us+dQDs xP72cdCLEftveQqGk/5G6Sx/vbduqbS+Od8SYVZ4yEpAv9iVMBtN9kzHjWhrSm8VhLGu cOUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uReAUGQBLjAJiq9+f46ci2txPUYz44mSkkuCqJOBX7o=; b=k9EMEIzXwM1cIqyr0JKvKzvHlf2ji5XqIDC80LzaAsF8pFoVmSUKkrbTxLwLFLAz6F /O7MXGT7x33ZPQdL1ZgOnJByuCJLkrsO81w81Lal0RzM7rf8ja8krButb9j4px9BdX9M xG8g5gaEcyA4ZvmWzWwiHEeX+2Va14zYxGuEHXnG3aYyPWx7hv+fHtuBWv7PsbHiUS4K 6kE02LkqjQv2G46tgyHpNOtK5Rl6nmTAf3Af7bRM/CXZY/iwF6ol9UmmwOm6Qh5HReUP K5Z1O6dfv7Wpd5q11mLOAo4kBjX8sA54dbWjKVpJpTmoLKHd6YtfOtayNGBdDG8V1gWh JSVg== X-Gm-Message-State: AA+aEWYBYrbeRsZ0U8EUo6xK+e0T8EjWmWr+lV3QKlIr8ti46mPUFuBb S1UFlgjnMWb06H9vTZzVePBxdOdE X-Google-Smtp-Source: AFSGD/WrCVxPZNpZJ+mFUI3smugGsKVMkmPUzuqVhgnsCqlqLlbqyfDZhuTkhMpCWiJfumifA8bt3Q== X-Received: by 2002:a2e:4299:: with SMTP id h25-v6mr8396759ljf.5.1543799962442; Sun, 02 Dec 2018 17:19:22 -0800 (PST) Received: from localhost.localdomain (91-159-194-103.elisa-laajakaista.fi. [91.159.194.103]) by smtp.gmail.com with ESMTPSA id d23sm2074773lfc.11.2018.12.02.17.19.21 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Dec 2018 17:19:21 -0800 (PST) From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= To: ffmpeg-devel@ffmpeg.org Date: Mon, 3 Dec 2018 03:19:19 +0200 Message-Id: <20181203011919.8354-2-jeebjp@gmail.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181203011919.8354-1-jeebjp@gmail.com> References: <20181203011919.8354-1-jeebjp@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] lavf/mov: document the dvh1 codec switch based on hvcC availability 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" --- libavformat/mov.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index ec57a05803..497790522f 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1903,6 +1903,11 @@ static int mov_read_glbl(MOVContext *c, AVIOContext *pb, MOVAtom atom) if (ret < 0) return ret; if (atom.type == MKTAG('h','v','c','C') && st->codecpar->codec_tag == MKTAG('d','v','h','1')) + /* HEVC-based Dolby Vision derived from hvc1. + Happens to match with an identifier + previously utilized for DV. Thus, if we have + the hvcC extradata box available as specified, + set codec to HEVC */ st->codecpar->codec_id = AV_CODEC_ID_HEVC; return 0;