From patchwork Sun Sep 4 20:05:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 420 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.134 with SMTP id o128csp2422578vsd; Sun, 4 Sep 2016 13:05:13 -0700 (PDT) X-Received: by 10.28.198.6 with SMTP id w6mr11737862wmf.63.1473019513309; Sun, 04 Sep 2016 13:05:13 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id n132si14194192wmf.23.2016.09.04.13.05.12; Sun, 04 Sep 2016 13:05:13 -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 6D31B689E9F; Sun, 4 Sep 2016 23:05:02 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe01-3.mx.upcmail.net (vie01a-dmta-pe01-3.mx.upcmail.net [62.179.121.156]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A382C689E95 for ; Sun, 4 Sep 2016 23:04:56 +0300 (EEST) Received: from [172.31.216.44] (helo=vie01a-pemc-psmtp-pe02) by vie01a-dmta-pe01.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1bgdf6-0008LK-R2 for ffmpeg-devel@ffmpeg.org; Sun, 04 Sep 2016 22:05:04 +0200 Received: from [192.168.1.3] ([80.110.104.164]) by vie01a-pemc-psmtp-pe02 with SMTP @ mailcloud.upcmail.net id fY531t00J3YpwW801Y54nK; Sun, 04 Sep 2016 22:05:04 +0200 X-SourceIP: 80.110.104.164 From: Carl Eugen Hoyos To: FFmpeg development discussions and patches Date: Sun, 4 Sep 2016 22:05:03 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Message-Id: <201609042205.03590.cehoyos@ag.or.at> Subject: [FFmpeg-devel] [PATCH]lavc/avcodec: Improve av_parser_parse() documentation 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch fixes ticket #5809. Please comment, Carl Eugen From 377749b388637c09f8822e501e53c565e7d4cb94 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 4 Sep 2016 22:03:12 +0200 Subject: [PATCH] lavc/avcodec: Improve av_parser_parse() documentation, mention padding. Fixes ticket #5809. --- libavcodec/avcodec.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index e2dad5d..6b17892 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -5146,7 +5146,10 @@ AVCodecParserContext *av_parser_init(int codec_id); * @param poutbuf set to pointer to parsed buffer or NULL if not yet finished. * @param poutbuf_size set to size of parsed buffer or zero if not yet finished. * @param buf input buffer. - * @param buf_size input length, to signal EOF, this should be 0 (so that the last frame can be output). + * @param buf_size buffer size in bytes without the padding. I.e. the full buffer + size is assumed to be buf_size + AV_INPUT_BUFFER_PADDING_SIZE. + To signal EOF, this should be 0 (so that the last frame + can be output). * @param pts input presentation timestamp. * @param dts input decoding timestamp. * @param pos input byte position in stream.