From patchwork Fri Dec 1 00:22:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stebbins X-Patchwork-Id: 6484 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.94 with SMTP id m30csp524638jah; Thu, 30 Nov 2017 16:22:32 -0800 (PST) X-Google-Smtp-Source: AGs4zMby1SEVfNu7EMdFRSVIdOV4qJtl5ti0E8DHXj0MRdk22LKVWdUbmdgmuu7F3pd++O+1ubsg X-Received: by 10.223.184.42 with SMTP id h39mr3587872wrf.38.1512087752088; Thu, 30 Nov 2017 16:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512087752; cv=none; d=google.com; s=arc-20160816; b=fHrBinMxE4Sba5MobF04Zibwpjz7icEptJE6G2O1vpILNXfYMSlQFBc0Gk2W3Ibc1r RjGA4x+YNXbmZ0+3FDnM+PSSON9rto+xwhU4s7DB3KBE+KHRSaJmfpeih9p3fKCixGe4 vCZ7ja20L5QL1IDaouxBZbUQoQ6lvKMqMIma9jqItzcNuzfWyJ/ZoF19QSlVkEdLwI6e Axq7EdGSjfotYUkkPR+TMsXOfqqWQnFjYU6yezY8g9ebttuhyg0xxpOYVtvb1F2emfMI H92XShHGkph86M/tOgC6gC3gMp8WASsAsnQWVS3eZ4gsc7Bchn/ih4Lmz721eeNX6ojR GC0g== 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=tsQ7MGELZXCgMUgC3o4HCxPrMLdm+gufCJ5V6r+Da78=; b=0X6SN3Y+SFMT3T+DicyM0wkGqWUtf57g5sxoNmLB+2PxsU5qv5JiUYMiu7Wd3c/mA5 Ik877mBDZeC0NONBQ2/+ERDN3Jaq/FUJYtn2waZHizohgrC2t+2MAFA6D2bMmE/Nj7jB rkF7OxbQDvqzKFFN4GyQ9OsKlE6OTQbe5Itu64LMq6AbypJtDUQsZ2Y7yyBjHS2iFLT2 aI+vKl/upLY8Mks60ERHPIMNXMZCBVlZIzkIhTi9J6wB9s2yVrQBTEQTkVWUwBXBQ/Dg gAD+1gt8h6TxP5wiKLHcghWRCetsT0aB/yPCvwAK8F5DsqKsRW3yVr8dE+jsZIhnlP0Y hxPg== 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 w21si4132547wrb.38.2017.11.30.16.22.31; Thu, 30 Nov 2017 16:22:32 -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 E425768A3ED; Fri, 1 Dec 2017 02:22:26 +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 8827F68A354 for ; Fri, 1 Dec 2017 02:22:19 +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; Thu, 30 Nov 2017 16:22:21 -0800 Received: from dionysus.jetheaddev.com (localhost [127.0.0.1]) by dionysus.jetheaddev.com (8.15.2/8.14.7) with ESMTP id vB10ML6n024333 for ; Thu, 30 Nov 2017 16:22:21 -0800 Received: (from jstebbins@localhost) by dionysus.jetheaddev.com (8.15.2/8.15.2/Submit) id vB10MLVx024332 for ffmpeg-devel@ffmpeg.org; Thu, 30 Nov 2017 16:22:21 -0800 From: John Stebbins To: Date: Thu, 30 Nov 2017 16:22:09 -0800 Message-ID: <20171201002209.24270-2-jstebbins@jetheaddev.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171201002209.24270-1-jstebbins@jetheaddev.com> References: <20171201002209.24270-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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 4456e300f2..c137fe4ae1 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -329,6 +329,9 @@ FF_DISABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS #endif + if (x265pic_out.sliceType == X265_TYPE_B) + pkt->flags |= AV_PKT_FLAG_DISPOSABLE; + *got_packet = 1; return 0; }