From patchwork Thu Jul 6 16:42:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wan-Teh Chang X-Patchwork-Id: 4228 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.1.76 with SMTP id 73csp2419550vsb; Thu, 6 Jul 2017 09:45:06 -0700 (PDT) X-Received: by 10.223.136.11 with SMTP id d11mr39833986wrd.73.1499359505959; Thu, 06 Jul 2017 09:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499359505; cv=none; d=google.com; s=arc-20160816; b=OPxolAG1e99LJlsRXG121tEMEbzt6Jy2u/B/j0k1JhF1s0a+B6wEO29ZZP7izVwK6c UgNsK/4zQFKE8kvbj85Krbe/SqRrZomCZCHvEFv5oI50mfvmSzryipNU27MwbVOSaseI AtIyZ+FWU/qLP9nHwaWMvNycp9s/6+9GhgQY+B04KbWpQGNMhc/9besavSUIMbql6g16 AXwCcGxAti/Ae2gMoroImC39QWrmUu0KZ44BTzSLOGLk8fvziU36Duidri3LVhlUjXIP WndWqo2bSORG8rCAVzacep9WIXoLsDxOSU5XyfKaRtrzOeTWy2Kq5gQd1vRKt1LTkfac p1IA== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=rhlMjI3du02ImYCy0vdoslK+DS7SSDNo1Aem3xLkr3o=; b=FxhlPs3nrM9hXqckaKADx9MW7bVnO3trCkJz2TGfhLmA5riJ4tl/DNALja1DhOupGr bLmkcBz6SY1Y/ITCmmIgwIYqKgOdKLaYzytVj/5NSPj+YyZbe/ECLnmmo4PUOrlAG/hk +KDXNkKxbfag9aD32To3w0ihF0daot8N9QtnMbN1v260NV/L4HrLcG7mSJeLWdmxfK3V if6xoig1A3FGX4n5WzrfUejLlLu5dYFj0Mao60DTnvPHCtjyk0JI2a0U9pzwuosiWmyi IM66woiizp+BiHRcW5430Zxfe+pREE4k333TZPS2wIB0J6FNBo+VUmCc/M0XQ21ULOYB 6x9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@google.com header.b=OvHP180K; 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 u48si321901wrb.323.2017.07.06.09.45.04; Thu, 06 Jul 2017 09:45:05 -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=@google.com header.b=OvHP180K; 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 0A436689735; Thu, 6 Jul 2017 19:44:59 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg0-f54.google.com (mail-pg0-f54.google.com [74.125.83.54]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6FEA6689203 for ; Thu, 6 Jul 2017 19:44:52 +0300 (EEST) Received: by mail-pg0-f54.google.com with SMTP id j186so3635162pge.2 for ; Thu, 06 Jul 2017 09:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:subject:date:message-id; bh=PptZNIvnTxlhRjvvt7ZIP189+5sBTnTyC9Jtw4H52dI=; b=OvHP180KvxSQd1dHM03D3xTHDetrf6mEV34d4nskURoA98cnb2FxRIzCnZIS8exRmC sVLJGfJhEaWkGJZpvFmtJKRWBAiyNeSQ6OdblbDBBLpLvLeLeUu1L6qIRdLj6RxoWzVZ h/0ssa+JwvTjo2w/BsKFpPeWb/+5LLTakmCqT1VG6o3ob2GDihdpvUMNrVNL89486eqr 8Eg4MLjhSdlbmmUqWMu8DfssnPsvc5v0FXiCHiZbOPyZhfVijy9CBFLjIPflk7/LSVoM CoBI/YBfbqeOgwLxCUbMexI51F+ezOMO8zE8Ch4cvK1hVwJ9Ng3+FR6wGjlhU1dapVDK JPmA== 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; bh=PptZNIvnTxlhRjvvt7ZIP189+5sBTnTyC9Jtw4H52dI=; b=fpjm6t5BwBSvFEgwDQffHypwJ5iXGmjp8sacZ+SnpB0M/yRaij6WmeDDNRIP688uWy UfOkVPaAe14bbZHIU2SjuPxhQleXZywu36lGz4+k9W3s6fyK39Q14lXWu5x/Lhisykdh OukaAw4/ygf5IkF+nEQ5apcDHHK+TbK6VNUMNZgwsLjnfE2ljdzqHGvgb3Fqn1DgddsV wlrsGJTkX2Mm//f3QtMxebPImuVjDLrkD9wbfKE96DHKjI3tr1YaZTQv0ws9GO3HNw58 Qkgd/H/utLdR+ZpfGWvYgPd68W2M6MnMGuvBa0x3m1H3EOYLevE1Gh/Ox7ByIcEOSoao kwhA== X-Gm-Message-State: AIVw113qFx20h/h0jm/SRO4HlmfUrL69+3Ia9QimLBaBPGQLJo2xlNa8 deeyHigwvgNh/ce0BFLFpA== X-Received: by 10.99.64.198 with SMTP id n189mr18435261pga.281.1499359492508; Thu, 06 Jul 2017 09:44:52 -0700 (PDT) Received: from wtc-desktop.mtv.corp.google.com ([100.98.5.29]) by smtp.googlemail.com with ESMTPSA id r62sm1546143pfl.45.2017.07.06.09.44.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Jul 2017 09:44:51 -0700 (PDT) From: Wan-Teh Chang To: ffmpeg-devel@ffmpeg.org Date: Thu, 6 Jul 2017 09:42:24 -0700 Message-Id: <20170706164224.36508-1-wtc@google.com> X-Mailer: git-send-email 2.13.2.725.g09c95d1e9-goog Subject: [FFmpeg-devel] [PATCH] ffmpeg: Fix typos in the comment for decode() ("." vs. "->") 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" pkt is a pointer, so it should be dereferenced with the -> operator. Signed-off-by: Wan-Teh Chang --- ffmpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 6dae6e9078..888d19a647 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2253,8 +2253,8 @@ static int ifilter_send_eof(InputFilter *ifilter) // This does not quite work like avcodec_decode_audio4/avcodec_decode_video2. // There is the following difference: if you got a frame, you must call -// it again with pkt=NULL. pkt==NULL is treated differently from pkt.size==0 -// (pkt==NULL means get more output, pkt.size==0 is a flush/drain packet) +// it again with pkt=NULL. pkt==NULL is treated differently from pkt->size==0 +// (pkt==NULL means get more output, pkt->size==0 is a flush/drain packet) static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt) { int ret;