Message ID | 20171017211225.3175-4-sw@jkqxz.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.90 with SMTP id m26csp636754jah; Tue, 17 Oct 2017 14:19:14 -0700 (PDT) X-Received: by 10.223.158.208 with SMTP id b16mr4302314wrf.99.1508275154412; Tue, 17 Oct 2017 14:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508275154; cv=none; d=google.com; s=arc-20160816; b=bHLYs9y2dHKGZs+uHpmUJ323SYZgUFkWa51ZIMEYdLNOI7QO2XsGknQVShgmYWBWcy IqMrElVqwIuNP76oxaJHUa8bSJAa+eW2ocPUiyASCrF10+VXP+ERDjOgxtM2VEC/IgV4 8pgvzu0Y9GCb+IsGzkEgPOzXjfJSJDg6dqvvh/RonGjtqlCdEGlM5F+s5lD6su0bMQcD cV+qSshF3c+h2ARd8F/AVoXfk5KOAjAqEvD+jeYFwDky+z38VZN2q1PLWUeMMEldB3b7 qf8XpTmbjuzsQ5L6hde7WNOgY0ob3X/gfp5uqB9vJSUFXZ7FTpIetptqSvAV69XZi/+X WBng== 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=3FP6XKEfa6CF6wiBAkGlYXTlj6Sa1FFJ43/JNaqqZsM=; b=0udodt63aoDvVS/v5wYeXBhd0UwjPDRq3Dk6BaEkf0FGsTkzIszWtoMyT8hTFmkW9+ FWZKQg/IR4ato2KWA/BevoqaNF3p7vZRLVjLJzOzVr5t3hmyPw7rpMMIlhZ1FqzMCUKO fuEIygysmuHOLh6/vMhXJwH9Twr5yVQ6x6/FHOlfqubMkUTVi9IAmlvGvp95f1yZ5zYL UHjovrBZtW9SgLOuSWifQIY/6jgxxbDtKHWcTaWXzp4zdMF1TTRKulJsu9dM3WoJQTYE 1Uj+RU8ttX5HIVdGAFpak8Oeb8q+NVEMc2425OwZfXQ8uJnAPd0XmLrFOGz6afikuIQ0 AVRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@jkqxz-net.20150623.gappssmtp.com header.s=20150623 header.b=nBLLj/UH; 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 z8si8132279wre.486.2017.10.17.14.19.14; Tue, 17 Oct 2017 14:19:14 -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.s=20150623 header.b=nBLLj/UH; 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 7580968A070; Wed, 18 Oct 2017 00:19:08 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f174.google.com (mail-wr0-f174.google.com [209.85.128.174]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 56D80689DA8 for <ffmpeg-devel@ffmpeg.org>; Wed, 18 Oct 2017 00:19:02 +0300 (EEST) Received: by mail-wr0-f174.google.com with SMTP id z99so600348wrc.12 for <ffmpeg-devel@ffmpeg.org>; Tue, 17 Oct 2017 14:19:07 -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=WbWYjeU4IW7d3pffEe4S6FEY3mtn3DETQSAjZvImFEI=; b=nBLLj/UHWSmJZuvGlFvUkAKAbYV+QeCjxXEUzi0yRWwChjSIMqKoyQ/vz72goc/jXY gf0yfxu8qqtnJuWtVWbdpvc98FKbO44F57ynoc98Qn3buQfA0eTbpkHdyMGxBlPn161N HolxzoCDHDN9NsOGv0l/KTfYnokmOc8bNDV05xcxpIe0o75puccxsfcAVaQC96qsKhUT ++NOTCzk/4IxUEoYGV8stEGODTm2bPxquYut4WUhMyCIzXgdtszJSnvkZDDvhGfISbzy CU19rjfUChknyERDb/BSIF9iYR3BIbEweHUbGyI4RPketmOPgowG2d6uz2R5C5ILsyjl a6TA== 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=WbWYjeU4IW7d3pffEe4S6FEY3mtn3DETQSAjZvImFEI=; b=uDm0ZjZRUOpWzjmTt1U6VImwb/trYXStmuEKpdwZ5qeNscKZ/bPcligVH6zwzQxkQ7 uhR1KtZPqzTEbo9FsB6dqMPZSOHjg6fTQIKCMKK7xl+ANSFhOA9+BWjXg0ZhrF6EG6RD QJ+Yv1+pZ0oiLltRSw4UgzoRzWjIpvmb/S5dK+She7AOGpTBjV22R750VERCgYgAiPK+ ds5yUGSvjIHJvX6/cBp0r5hLnBp83KxTZOsPlMujSFA0lQYq1uy8/klH84BEtsUNrogB HjBfN8diDDDA6q9SsoaPwWvlIMwv0VMrLE6GtxP/158X8OZaMejCMPGXGJYNy+lyER6O vC8w== X-Gm-Message-State: AMCzsaWP1BID/gJWswBhSz65hWnOJ5L7alKo6bFEZMlaS3Cmy9pqdwSU zdvhdImvZreI28ib8Os2d6wFyoup X-Google-Smtp-Source: ABhQp+SrNW5Kv3oIJYteDJFJBj3vFTvmHoO+VaGfq6bj+5QfZhE2LzUJMRYQX2dg9i1rGslPWM05TQ== X-Received: by 10.223.165.67 with SMTP id j3mr4471868wrb.271.1508274753342; Tue, 17 Oct 2017 14:12:33 -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 m25sm10810335wmi.7.2017.10.17.14.12.32 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2017 14:12:32 -0700 (PDT) From: Mark Thompson <sw@jkqxz.net> To: ffmpeg-devel@ffmpeg.org Date: Tue, 17 Oct 2017 22:12:20 +0100 Message-Id: <20171017211225.3175-4-sw@jkqxz.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171017211225.3175-1-sw@jkqxz.net> References: <20171017211225.3175-1-sw@jkqxz.net> Subject: [FFmpeg-devel] [PATCH 4/9] webpenc: Add missing error check 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/libavformat/webpenc.c b/libavformat/webpenc.c index 9fb472257d..d1ebb5fbe5 100644 --- a/libavformat/webpenc.c +++ b/libavformat/webpenc.c @@ -158,7 +158,9 @@ static int webp_write_packet(AVFormatContext *s, AVPacket *pkt) int ret; if ((ret = flush(s, 0, pkt->pts)) < 0) return ret; - av_packet_ref(&w->last_pkt, pkt); + ret = av_packet_ref(&w->last_pkt, pkt); + if (ret < 0) + return ret; } ++w->frame_count;