From patchwork Sun Nov 19 20:46:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stebbins X-Patchwork-Id: 6204 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.94 with SMTP id m30csp3148130jah; Sun, 19 Nov 2017 12:47:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMaPTY49OsamQ9qXlrVt2ler5cyrD9T5WsqNXqm4aZ0jBH4wyRPVU75XILsIx+iqCMQKuMGV X-Received: by 10.28.61.87 with SMTP id k84mr8200918wma.48.1511124445184; Sun, 19 Nov 2017 12:47:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511124445; cv=none; d=google.com; s=arc-20160816; b=WGLqOPLkoosPUTCiC15b1+kx2/W5YbY7h9g76vqVfBhBPxB3mWsYyy228wgISP9Kqe 61I6fFAU06Kco+wBZbnT7MBE9E15lyhbftW56FGt1ZsYRy+XAfkpeUauguyDwDajG1SS BpPaPGlyeLAAcKi9VTmvz5iX7ezNDvEE4bJKNe3DD3QLcCD+m5LQzTXmR7XscVaWI7v1 xAYr0xIi0kK04PGymFJm0DzRRgixQp8aNfyzpBHNa+rvp8MyrxgXRlqdmoeA3KK0+0xz V/7GusUxj5Rrc1RvHugW3JCbQkWz+7+WCw9Qteal6wfCOS2rDm51woVw/0/Y+U0F3zP7 d9uA== 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:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=HXqvPxswImaiy1LCuG7Z2eypifFwSjYqIcczruzhonI=; b=IHBrgGAcWvYNLq7VqWcbLcFK9T0nHhz8Y7AbgFp10gEfEQMd3QFzcwMVsb7Li+gZ4D MfMOi/1prDcV54AA0vsx8LJ/PefEiOvKxoAz7PkaBEebsAveK3Pu+0PkYxNMX1PsnC3b HpjNr+PQ83ZG9+pOYZm++QcEOh6D1x+GZtdBFA0PylrUjo58z4Ubi9DwTpVFAVuRczKz uaehXsiLiLLBPtnY/ZHDObRcogei1LlSHvFVDGRffqyPDKq6VkgQtguJAWhk6BPIfVsC xJXz/NP71c+v22Okcqq8F46agpx7aSGeZLO9mYT9aMYmzgW2v0J39KuZJsE+DkgkaQbn 4H+A== 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 n3si6543301wra.206.2017.11.19.12.47.24; Sun, 19 Nov 2017 12:47:25 -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 D8AF3689AE2; Sun, 19 Nov 2017 22:47:06 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.jetheaddev.com (mail.jetheaddev.com [70.164.99.34]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 01562689A50 for ; Sun, 19 Nov 2017 22:47:00 +0200 (EET) Received: from dionysus.jetheaddev.com (10.13.12.63) by cas.jetheaddev.com (192.168.13.27) with Microsoft SMTP Server (TLS) id 14.3.351.0; Sun, 19 Nov 2017 12:47:15 -0800 Received: from dionysus.jetheaddev.com (localhost [127.0.0.1]) by dionysus.jetheaddev.com (8.15.2/8.14.7) with ESMTP id vAJKlFBr004685 for ; Sun, 19 Nov 2017 12:47:15 -0800 Received: (from jstebbins@localhost) by dionysus.jetheaddev.com (8.15.2/8.15.2/Submit) id vAJKlF4W004684 for ffmpeg-devel@ffmpeg.org; Sun, 19 Nov 2017 12:47:15 -0800 From: John Stebbins To: Date: Sun, 19 Nov 2017 12:46:32 -0800 Message-ID: <20171119204635.4593-4-jstebbins@jetheaddev.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171119204635.4593-1-jstebbins@jetheaddev.com> References: <20171119204635.4593-1-jstebbins@jetheaddev.com> MIME-Version: 1.0 X-Originating-IP: [10.13.12.63] Subject: [FFmpeg-devel] [PATCH 3/6] lavc/libx265: mark disposable frames 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" Used by movenc to fill sdtp box --- libavcodec/libx265.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 4456e300f2..8279a99ddd 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -329,6 +329,10 @@ FF_DISABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS #endif + if (x265pic_out.sliceType == X265_TYPE_B && + x265pic_out.frameData.sliceType == 'b') + pkt->flags |= AV_PKT_FLAG_DISPOSABLE; + *got_packet = 1; return 0; }