[FFmpeg-cvslog] lavc/avcodec: Improve av_parser_parse() documentation, mention padding.
Carl Eugen Hoyos
git at videolan.org
Wed Sep 7 19:40:23 EEST 2016
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Sep 4 22:03:12 2016 +0200| [7a8e5ff1fd06c0363ed4bb26cda5262fcd925b74] | committer: Carl Eugen Hoyos
lavc/avcodec: Improve av_parser_parse() documentation, mention padding.
Fixes ticket #5809.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7a8e5ff1fd06c0363ed4bb26cda5262fcd925b74
---
libavcodec/avcodec.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 4d92f69..01f9b29 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.
More information about the ffmpeg-cvslog
mailing list