[FFmpeg-devel] [PATCH]lavc/avcodec: Improve av_parser_parse() documentation

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Sep 4 23:05:03 EEST 2016


Hi!

Attached patch fixes ticket #5809.

Please comment, Carl Eugen
-------------- next part --------------
From 377749b388637c09f8822e501e53c565e7d4cb94 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
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.
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list