From patchwork Sat Jul 13 16:48:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 13930 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 9D217443D38 for ; Sat, 13 Jul 2019 19:55:28 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7176568AAB0; Sat, 13 Jul 2019 19:55:28 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 912C068A495 for ; Sat, 13 Jul 2019 19:55:21 +0300 (EEST) Received: by mail-wr1-f67.google.com with SMTP id r1so12888426wrl.7 for ; Sat, 13 Jul 2019 09:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3xuJhYl1B9EpE2asFZVUkx2vjplif0HUvFQoZfSKWlw=; b=ehgdCZq3hi8EIxapnHZy02mQTrzTyvY/zlVDxx9Qs4z+wlTmDr8iAiu7TuhX8y8ZfB Ara80MtDfrDDf+qJuIhYfvCwRCWa38QT4c/mT/IwBubqppHkshIA+7iOO567woD6T1D0 E1igAvgSMd3W+MSqJzcfclaHza44PVnFd+f+wOtGLKV+d7D529qnqw9zQNnjosSLiYtT CwjLsUtd+2gJEmNzfsMeC0dAED5IT+m5z7OO4OY6aDu8ij7XVeKGnmJYn9MmbRDM6eMr pzt1mPqMKRgyV6ugk2vStk31QV1qqFjnEdwcSyz1FucFaRXQ7anO0tBQUd3JJEv3eTQR mEEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3xuJhYl1B9EpE2asFZVUkx2vjplif0HUvFQoZfSKWlw=; b=MtkztvHjvtbbYey+MmboKYnlnzoKikbQhmuJhjLGOGA+xGr4raYakAOQ8osvKo7qJH c9vZ6MyzQ3vKOZFXgeLEb1V/grya6gKossru3jpi7Jnz0EGJIHnVQ1N/APCw+0+JfwvH rf63yhV5+jinONN+EnerxsiVA9IphDFL7BgNl0hXnU1va4Kss63/eHXXWxvN46WnP0LS IGJSKtQCU8rwoLaUi6bIqdxEwAj+43JGlHXdrJVJN4AiLqh2xVKpxVRwBprGbySDwzQv yyxzWObDZs19HVOj2GtJtENNIhn4lxPWd0E0tPPt/e3it//bj5j2nUo7XDssL/1QS2uP cB/g== X-Gm-Message-State: APjAAAUAyYbpLRlebpXX9i1wdrRFHO5aVIE13UFdfN+cb70hM9xs1HD8 +v13Ag8JdudAQh8CtZQSWXA29uJ1 X-Google-Smtp-Source: APXvYqzpEsPnP1yDhHDe9ldFbQ6a/fIrWkulQmrvyByFHYWb8W/i9cU32L+Bx1xdFyR6k8796noKpQ== X-Received: by 2002:a5d:53ca:: with SMTP id a10mr18683299wrw.131.1563036560858; Sat, 13 Jul 2019 09:49:20 -0700 (PDT) Received: from localhost.localdomain (ipbcc08b8f.dynamic.kabel-deutschland.de. [188.192.139.143]) by smtp.gmail.com with ESMTPSA id o26sm12760079wro.53.2019.07.13.09.49.19 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 13 Jul 2019 09:49:20 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 13 Jul 2019 18:48:48 +0200 Message-Id: <20190713164848.59326-1-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avformat: Don't suggest deprecated function 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 Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Andreas Rheinhardt --- libavformat/avformat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 734ae54cac..6eb329f13f 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -175,8 +175,8 @@ * Otherwise, if AVPacket.buf is NULL, the packet data is backed by a * static storage somewhere inside the demuxer and the packet is only valid * until the next av_read_frame() call or closing the file. If the caller - * requires a longer lifetime, av_dup_packet() will make an av_malloc()ed copy - * of it. + * requires a longer lifetime, av_packet_make_refcounted() will ensure that + * the data is reference counted, copying the data if necessary. * In both cases, the packet must be freed with av_packet_unref() when it is no * longer needed. *