Message ID | 20170612224041.6750-3-sw@jkqxz.net |
---|---|
State | Accepted |
Commit | 17aeee5832b9188b570c3d3de4197e4cdc54c634 |
Headers | show
Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.22.4 with SMTP id 4csp77694vsw; Mon, 12 Jun 2017 15:41:30 -0700 (PDT) X-Received: by 10.28.145.74 with SMTP id t71mr1978956wmd.38.1497307290868; Mon, 12 Jun 2017 15:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497307290; cv=none; d=google.com; s=arc-20160816; b=hRloc97reIl0Reat4Nns5um9ofzVbR+xYhRJjnFls6tA1Zd71cCeDes2vLAnWamJ5h e/0LLvPJYD3gqw1qXsOVmFtpSB+Lb4XaAPA1Rlv5MBPpd7JEBt8IecqL1OrLx3QIeNYN rP05hK+Bj+6ymgWdzD7Q8qXxfs0rWclQ0+9V+rpDOeidxaLZfLFv4SKaA4MKMDZy2Eng qKw9fKiQw02Nv4Er7hXmxayzvFj21emEDzPTvdFR0QP0QtPHxBBilcddgYDRVzWfVpoa roKeS1Sbr2if497iddoF9xiMACRQ2BsKiQ2P69355gqD5fSyD/sa9M7u4HLhz4TC/Xh0 w0tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=rqVe72ntHY5FqZ4bOxEE9X/HExuAC8PAIAsOAoLIpJo=; b=0j5ZTKRGj+/irc7WaBaBQPfrrTIIjemqvRqMw6AtgeLSi4QtvaNmjEG/8Ch5gnCnMx vZt48VaY/vfm7sPlDCZ5sWmrjbRSckXZegj7ax3RAec2Qmcr/QwF5vjwr9L6uSvediaT SKS5oEvnqO2bTKoiMhyO2kcAeRtLxhLyXhm33WgrXmRsrMANHGeXPExB0Ez4kaM9KL0K tkKnaNQlRSxGqWdcISTQBbkVemoEKuHUobK5PGYcjTSxj9zslPlajHNtHcl2vSVU/732 VIpN9Ve8iWrc+IQiGmLJSYntdnWaykrFjy7laN+V3URD4IrVHSEsznurQOmOpV/69B5k MsyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@jkqxz-net.20150623.gappssmtp.com header.b=k8ajwvZ5; 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: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y133si8745976wmg.104.2017.06.12.15.41.30; Mon, 12 Jun 2017 15:41:30 -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=@jkqxz-net.20150623.gappssmtp.com header.b=k8ajwvZ5; 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 8D7C8689BDC; Tue, 13 Jun 2017 01:41:07 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E775868827A for <ffmpeg-devel@ffmpeg.org>; Tue, 13 Jun 2017 01:40:58 +0300 (EEST) Received: by mail-wr0-f177.google.com with SMTP id q97so116887070wrb.2 for <ffmpeg-devel@ffmpeg.org>; Mon, 12 Jun 2017 15:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=AhPozOXjQ8oGJcrS/K1sKblRvS5W7XLDbxUGTe4Sj28=; b=k8ajwvZ5xSnSR+oOsa+pXB8MpWtYfoxzBrzKjEnQCeDJMioeMyorWRya4dL/MSiw5x Yhq+nt/yrM4rYMU08ttGemBdf0RXba3tVrFvNDgBO31Phg/Jv/CwgpY1/4B1wdjO+oIp wStyqRmimrGbwjHzjhey0VoJRvnxs0S8/+gTUkAmp3ztxqyRiy8MOH1vi/s49l3WZCf1 yRNJO41aYvuUvoUIuPSPiKAuGSjc3dNOw5R9PaX45JD6WnbliNOHyeL5U82xXJpFwurC rbNvyGCHz3CTvfApTEyn5RURgMvHfLm8uIYCJZBLL+Jy6c4avljM/+r7GvwRx69Ctsmz txnA== 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; bh=AhPozOXjQ8oGJcrS/K1sKblRvS5W7XLDbxUGTe4Sj28=; b=P7D7lmDn4Ic5p19J7ONrRJqVYkz+444yJFekbsAmTjeuufm0R5GaQmbVDASiVgZZJx 8P/tEYsGioBAdwVmYeDPRZbiZri2aZXrfT78IaFN5DKAsYRtPEFpUIMb1zPx+yJjPKT9 iwFmvHPyVc3+qE9b52rlTDs5CudJtkKbuvMzDCLlE6Eu1hXu4ucuHnL+YEQiXym6gy7C h/10oNUBWRVVHJ+WRRv4vyGz3AIzrSV8vT321exGi8OX5br9L4cpB/doHSw7pfDS9Gk1 wSkh1lMBrqvFBjh037DV45Sq1rvw0gxOmHR1OMlgZs1j2+SZ/vxeOOjRyKzhZIONx8l8 J76Q== X-Gm-Message-State: AKS2vOxgjh3aimCkXK5jrO3DXybYUt6MZq0Fy5xG+TvqEBjveDVL7VBq FTnpvKw9r+TEBnnUQww= X-Received: by 10.28.60.137 with SMTP id j131mr666019wma.19.1497307260525; Mon, 12 Jun 2017 15:41:00 -0700 (PDT) Received: from rywe.jkqxz.net (cpc91242-cmbg18-2-0-cust650.5-4.cable.virginm.net. [82.8.130.139]) by smtp.gmail.com with ESMTPSA id m191sm13098233wmg.30.2017.06.12.15.40.59 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jun 2017 15:40:59 -0700 (PDT) From: Mark Thompson <sw@jkqxz.net> To: ffmpeg-devel@ffmpeg.org Date: Mon, 12 Jun 2017 23:40:19 +0100 Message-Id: <20170612224041.6750-3-sw@jkqxz.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170612224041.6750-1-sw@jkqxz.net> References: <20170612224041.6750-1-sw@jkqxz.net> Subject: [FFmpeg-devel] [PATCH 02/24] vaapi_encode: Discard output buffer if picture submission fails X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <http://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <http://ffmpeg.org/pipermail/ffmpeg-devel/> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <http://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> |
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 7e9c00f51d..7aaf263d25 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@ -428,6 +428,8 @@ fail: fail_at_end: av_freep(&pic->codec_picture_params); av_frame_free(&pic->recon_image); + av_buffer_unref(&pic->output_buffer_ref); + pic->output_buffer = VA_INVALID_ID; return err; }