From patchwork Tue Dec 10 21:59:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 16711 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 F3CBF44A835 for ; Wed, 11 Dec 2019 00:00:40 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D5BA768B54C; Wed, 11 Dec 2019 00:00:40 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 82B2C68B3FA for ; Wed, 11 Dec 2019 00:00:35 +0200 (EET) Received: by mail-wm1-f67.google.com with SMTP id p17so526850wmb.0 for ; Tue, 10 Dec 2019 14:00:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oYG2rWv/2ZPKJwboT3zOGIrfYB1M4Cu8VBk8L1OB33w=; b=deTenpjBQXFmb0GjNhxBSEaxaQExC6uuJXtlL46x0bkujsx7wqlhDlvwi3SEAY0bpl vToD+r3S1CJ98sIIBi8dk0QcGEhTtpw4/iwaMR17M7LshPgkiseQS74SUOp2oeWwP0z+ 2g/Rj/TpytyNnNG+22WiG1fCoTDfGxDvubgmgz0x42WkxdEaCFaifq3DZ3won8FMfYNs Rc/3yvRlY25FJiC+spYbLUL86udnoEEAIFB1rlUNL8sU7vze/cLfeHe9W7kids+VcD6h 6gG1U+gS7A4ZlR/I26gWZOCBZ/bW26jOJa5SLe/Zy6gdoEk9qUFUor3CwGFWB24hv6Xl sFMw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=oYG2rWv/2ZPKJwboT3zOGIrfYB1M4Cu8VBk8L1OB33w=; b=eg+adrk8p3JjiTFtiIVu7eFMO2smJdKLiXIjnH8zBd73dYfT85AFsdK92yAVVcjXfm ZX/8IkXm0vkmBMtZfbMYVSL/0Z13T0+sRIE+aBbF38xF70hwCcuortFT4Ib0fVlMcU+f zGh4H1hoU24YpWIKmguBfKzo5ZYBbObCgOpksYsQ+MW5oQ/sstMlxxFVh/e5ue3bcNBA nrCf7pwYkmbIfDBt8xkXxWE2uVN1ZKuM1cokmkdwH6fdykmUXHhwi8sSWc6eXOGgJILb +DAcY3+q9fGtW4z7MShGIBquK8TOS2WbnvBlsPBYjl+MjVgtwtlVwe/ZNipN6/wqEvCt DAGw== X-Gm-Message-State: APjAAAU/a9f9slLyTJ0866KJxdAzQVtojVqdXPaaT6ZEWZuQeOsKErBJ /Mp84tXypqB/GWs+NpD24vcLq6g3 X-Google-Smtp-Source: APXvYqyQ8v/223xqbHPLYZ73h0S/mMZSTOKiquev0uMdapALvb1UJbDyDerinf53GmBJIp2OE7b4lw== X-Received: by 2002:a1c:6745:: with SMTP id b66mr7797007wmc.173.1576015234795; Tue, 10 Dec 2019 14:00:34 -0800 (PST) Received: from sblaptop.fritz.box (ipbcc08e23.dynamic.kabel-deutschland.de. [188.192.142.35]) by smtp.gmail.com with ESMTPSA id n129sm3876381wmb.1.2019.12.10.14.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 14:00:34 -0800 (PST) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Tue, 10 Dec 2019 22:59:55 +0100 Message-Id: <20191210215955.11178-11-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191210215955.11178-1-andreas.rheinhardt@gmail.com> References: <20191210215955.11178-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 11/11] avcodec/avcodec: Nits 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 --- libavcodec/avcodec.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 735a3c2d76..ab61f76337 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -4848,7 +4848,7 @@ int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, * If no subtitle could be decompressed, got_sub_ptr is zero. * Otherwise, the subtitle is stored in *sub. * Note that AV_CODEC_CAP_DR1 is not available for subtitle codecs. This is for - * simplicity, because the performance difference is expect to be negligible + * simplicity, because the performance difference is expected to be negligible * and reusing a get_buffer written for video codecs would probably perform badly * due to a potentially very different allocation pattern. * @@ -4864,7 +4864,7 @@ int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, * before packets may be fed to the decoder. * * @param avctx the codec context - * @param[out] sub The Preallocated AVSubtitle in which the decoded subtitle will be stored, + * @param[out] sub The preallocated AVSubtitle in which the decoded subtitle will be stored, * must be freed with avsubtitle_free if *got_sub_ptr is set. * @param[in,out] got_sub_ptr Zero if no subtitle could be decompressed, otherwise, it is nonzero. * @param[in] avpkt The input AVPacket containing the input buffer. @@ -4991,7 +4991,7 @@ int avcodec_send_frame(AVCodecContext *avctx, const AVFrame *frame); * @param avctx codec context * @param avpkt This will be set to a reference-counted packet allocated by the * encoder. Note that the function will always call - * av_frame_unref(frame) before doing anything else. + * av_packet_unref(avpkt) before doing anything else. * @return 0 on success, otherwise negative error code: * AVERROR(EAGAIN): output is not available in the current state - user * must try to send input