From patchwork Wed Jun 9 02:42:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: HouLei X-Patchwork-Id: 28180 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a5e:c91a:0:0:0:0:0 with SMTP id z26csp430916iol; Tue, 8 Jun 2021 19:43:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiA+BD9x86X0oMr/djqYjWOsfADUlEeXP/+VHYh+9BZ56p5oVxzPb7e3oU1r2nbeHEXYp+ X-Received: by 2002:a17:906:2c1b:: with SMTP id e27mr26712423ejh.5.1623206590316; Tue, 08 Jun 2021 19:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623206590; cv=none; d=google.com; s=arc-20160816; b=W9JRS8yuf8NjHdh+3Z8cnrGcj1+LKeNn6cnd1sgWfuATCU8E4pN7oouKPDTfwPgaxz 9ZUshytH6zipqyQ6nQQreyWW9TBQw19SZUQB3qrryDVYj2xWnW/01oAic/OH6Vd8AaO+ sO0yCMI9z2V/fA2z3QK37VvC8xVNIpQw6pIrcL6RIcOTQG1V2DRC8hxTI9fRKdn6F/US kdTFewoMQuEZg+ordxfuLdxB7+tJXOs42pDbjLvbjIgZsJqnJ2tiRsOhfOLRxNcJaLCR S5qYca2sQUGajivRmMvevLs0aBYx+s7qGouTXhtnlfBAWBtq30QubkFkRud4ldNSTn8p 8szA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=D6as2wxuKIZ3b1+62XFe2y23HvHNtYWQsGrxZNPjnJ0=; b=LltM4v2BrEwhQjE6pQOOT5ydLQoLjSdIUfNhgs3FdaRasTscoOJTl5BYj4cGJAvqlA 7+FKaYtafyYnyGxf7aBne7grndnm3JwnHYMISaWU9j7WJydluZw3RmGViyiwvSRtjN9d Zh/v9YhYgDrimnWnY/Xw/BXMXd16xJSu8RRfCDUniWKsdOQrosUznxCidzSQV8ZF3Xvm vjbNWyLqCifhyNiM6a/4/RGyGFGwnTVKvhmstBdGpKKHMeoR5xzYqKiYSaGy8vCbbEfI t6uwOXjpn+RQX7UKjFqfD8oVo0QrPBaZSNGSL/lNlFhVlmwU6lhs2YuZyS3VSrsMC5t0 lJpw== 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 u7si1250733eju.269.2021.06.08.19.42.46; Tue, 08 Jun 2021 19:43:10 -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; 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 B12B9687F17; Wed, 9 Jun 2021 05:42:43 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from lucky1.263xmail.com (lucky1.263xmail.com [211.157.147.134]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D74936808A7 for ; Wed, 9 Jun 2021 05:42:36 +0300 (EEST) Received: from localhost (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id DE77CC8550 for ; Wed, 9 Jun 2021 10:42:32 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [119.4.240.125]) by smtp.263.net (postfix) whith ESMTP id P32527T140356377114368S1623206549246304_; Wed, 09 Jun 2021 10:42:33 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <0a219c6f6d69235fa8fd457b922dac88> X-RL-SENDER: houlei@uniontech.com X-SENDER: houlei@uniontech.com X-LOGIN-NAME: houlei@uniontech.com X-FST-TO: ffmpeg-devel@ffmpeg.org X-RCPT-COUNT: 2 X-SENDER-IP: 119.4.240.125 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: houlei@uniontech.com To: ffmpeg-devel@ffmpeg.org Date: Wed, 9 Jun 2021 10:42:26 +0800 Message-Id: <20210609024226.13955-1-houlei@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] Fix memory allocation problem. Related to ticket #9264. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Cc: houlei@uniontech.com Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Sl6G3/UTIO66 From: houlei Signed-off-by: houlei --- libavdevice/xv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/xv.c b/libavdevice/xv.c index 7e15c178b6..8f9a2cb5c0 100644 --- a/libavdevice/xv.c +++ b/libavdevice/xv.c @@ -300,7 +300,7 @@ static int write_picture(AVFormatContext *s, uint8_t *input_data[4], img->data + img->offsets[0], img->data + img->offsets[1], img->data + img->offsets[2], - img->data + img->offsets[3] + 0 }; /* Check messages. Window might get closed. */