From patchwork Sat Sep 23 23:35:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 5249 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.36.26 with SMTP id f26csp1090398jaa; Sat, 23 Sep 2017 16:35:42 -0700 (PDT) X-Received: by 10.28.25.129 with SMTP id 123mr6697368wmz.17.1506209742886; Sat, 23 Sep 2017 16:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506209742; cv=none; d=google.com; s=arc-20160816; b=h4RKfCW9npF4jTKTk7Qw4qFitYGxe6zeONSYTAzPp9Zz18xR7SAG1Aiim8zQZW+Tfc OPsvrZh/oo8XWJ54fpKjQM/kBPqpumgePDXP+f01nvFTRtrf87wD+J7+vna/TsideMWY EVzAZ+k0a17uopuueHtWxMm1RdBMSp8R2xem6NpD+T1w7mSwAhAWslslRFTNY337Iagd ULMlQIUOWnJdmLiG4MXBgoNxy7BetiCAvRbWqunjvaQzyi2fReePtKDOKXLmyEyHsUkC +S9tMNbaIAg/gAaIljgu7CLPd0C3/ump0OiVPaGq7n6wka24W6gnpngPghQEetVLZ9rr Lrtg== 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=Vm7IanyiT2PKuv6nxhPnqMiHVxJ6LpdbTIn+Vsl+lO8=; b=oMIR6Xx5hDtkLMa8Ey586sk+GRIS7JO19J017u7EjEHnzBstRNA0HKmeARpcL/ss/q CPPaRvuUcCyrro4iZ4C7X/PxfqCanUDuEGmC7js/CGm5WEKvobr7t7cGX06x3QBDPfLr 64nRJahFI2c7v0C3X8Y7C/UC6Ah6w+GMM9CUM6hd7T3zy26Yp5zKvjOrJc8axGgaqHmL Qy/cRFK7EDe/Bwf5j0+FtrAThVaERt8MU4MwzSb3SK5rq6SzARhrUO8RaZ0McJcWz3uZ ny7FI4uAqH9N2Hbv21ER81huMnM+DGmQy4F2COG25U/hKHFcs0viHLZyE3mnluTbQ+3O OU3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=LoCWWUuw; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id b17si2105348wme.25.2017.09.23.16.35.42; Sat, 23 Sep 2017 16:35:42 -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=@gmail.com header.s=20161025 header.b=LoCWWUuw; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D9407688399; Sun, 24 Sep 2017 02:35:17 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 557CC68830F for ; Sun, 24 Sep 2017 02:35:09 +0300 (EEST) Received: by mail-qk0-f194.google.com with SMTP id d70so2854424qkc.1 for ; Sat, 23 Sep 2017 16:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=IZzmZ0erQplfvgnvUR6w4qiP5TL+xlM3tPRkRMxeVRs=; b=LoCWWUuwpKRjCBN8d9ZtBiGs2kRFjAR0/E3hyAL7PsKbrrGC5mdxqEmUdsWxP8GfqM 1vTlK+a0GDdVE4hFD0agKmQewi+nq/ntrcgYbgai2abeNSZWD8HSHmicgx1yWyTHlGlM /qPCpiYyGiALVskSObtNKLCNoTvKHKOI2wo1VRawjCplBUe8+wgvUWj3yz1BoJov1IvS T/nBFAoM+Gs0RrSNvPjx20dB7j3YeQN88YcIiCgCG/Ds8LNLeynQDhyh0x5Gi4Iv1iu3 4jfjy992w/jz8y7mvwBZypf+0bvWVqCCol4Q0fINrAOVy0Ma8TfDxv+exnX7Y5Gn6iuu 9j+g== 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=IZzmZ0erQplfvgnvUR6w4qiP5TL+xlM3tPRkRMxeVRs=; b=Tfx9xB4Me0rBOWo17TqWKUV77ml3d2UrhHp9IpORoYrDddyNwAhWVRPSUgXog0nn7/ 9HNRULN8ctCzmn58j0Ojyb+9EgYqQ9ouWCCmf099i9nHPRMDlF5ZJmcQWsFk0hsHtJtj roHE60x0Tfc+yvFR+QHQMXAmFEY0+Q627/PdIgQhyl0UPCOxWgEQktwYPiDCPWwtqBYG OSfqlBLWeHLfHvngSQn3f8FfzJBx5aUeHj0el3MsdUvMd7REaVQ3ueVHE1ushZqzAvWC 9f2PDDtrB6LyNbnlfxgXQgoJeU2Zlbl/RX8FM4sLA/dtiIO5eflqYfmTqUE+rAi9uC5J pqjA== X-Gm-Message-State: AHPjjUgGOVbikIBJ2jAIcFQ1GYaT9FEabIupiLDMLLBw6KWdEkl1htuN E9URPXBNDNlCs49t3uxp5B0t2Q== X-Google-Smtp-Source: AOwi7QAnjVzgYaJrMqbdoBLyP3kPPuFJOgPFxuPflDggR6sQ+NEtMJN9wGWoJEi6kaIg1Mf/jKr2YQ== X-Received: by 10.55.98.18 with SMTP id w18mr4992609qkb.163.1506209719212; Sat, 23 Sep 2017 16:35:19 -0700 (PDT) Received: from localhost.localdomain ([181.231.68.242]) by smtp.gmail.com with ESMTPSA id w23sm2630030qtj.0.2017.09.23.16.35.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 23 Sep 2017 16:35:18 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sat, 23 Sep 2017 20:35:03 -0300 Message-Id: <20170923233503.364-3-jamrial@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170923233503.364-1-jamrial@gmail.com> References: <20170923233503.364-1-jamrial@gmail.com> Subject: [FFmpeg-devel] [PATCH 3/3] ffplay: replace use of av_copy_packet() 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: James Almer --- ffplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffplay.c b/ffplay.c index 45f2d78443..9f7774613c 100644 --- a/ffplay.c +++ b/ffplay.c @@ -2978,7 +2978,7 @@ static int read_thread(void *arg) if (is->queue_attachments_req) { if (is->video_st && is->video_st->disposition & AV_DISPOSITION_ATTACHED_PIC) { AVPacket copy = { 0 }; - if ((ret = av_copy_packet(©, &is->video_st->attached_pic)) < 0) + if ((ret = av_packet_ref(©, &is->video_st->attached_pic)) < 0) goto fail; packet_queue_put(&is->videoq, ©); packet_queue_put_nullpacket(&is->videoq, is->video_stream);