summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-12-04 20:46:16 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-12-05 00:44:42 +0000
commitb72727a5248f1ef02db99b378dce1eb48a46357a (patch)
tree019b38fa10b8590dd0f6ee2d0da073573096c9e7 /libavcodec/avcodec.h
parent1c77ead1fb14d64e6798fc5e32af04abcb3cebb4 (diff)
downloadffmpeg-b72727a5248f1ef02db99b378dce1eb48a46357a.tar.gz
lavc: mention that the parser callback never returns an error
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index b3c641956a..7df64ae93d 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3858,6 +3858,8 @@ typedef struct AVCodecParser {
int codec_ids[5]; /* several codec IDs are permitted */
int priv_data_size;
int (*parser_init)(AVCodecParserContext *s);
+ /* This callback never returns an error, a negative value means that
+ * the frame start was in a previous packet. */
int (*parser_parse)(AVCodecParserContext *s,
AVCodecContext *avctx,
const uint8_t **poutbuf, int *poutbuf_size,