Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-09-04 23:03:12 +0300
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-09-07 19:37:01 +0300
commit7a8e5ff1fd06c0363ed4bb26cda5262fcd925b74 (patch)
tree178886a6ecab3da6df9814b529e1afb31da223a5 /libavcodec
parent38445d58f1a1cdc69bb11309e07aa99360bf466b (diff)
lavc/avcodec: Improve av_parser_parse() documentation, mention padding.
Fixes ticket #5809.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 4d92f69274..01f9b29773 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.