diff options
author | David Conrad <lessen42@gmail.com> | 2009-03-21 08:03:30 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2009-03-21 08:03:30 +0000 |
commit | 1fa9726cf6442879ebb61452d30d240d710e3580 (patch) | |
tree | 68e0077199e6dc9ab8a4fc41ab9757f97ee346bf /libavformat/oggdec.h | |
parent | be2a6e2f82051f7b8902a8d8ee47bc74ab719043 (diff) | |
download | ffmpeg-1fa9726cf6442879ebb61452d30d240d710e3580.tar.gz |
Document ogg_codec's header function
Originally committed as revision 18100 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggdec.h')
-rw-r--r-- | libavformat/oggdec.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h index d238e99a4b..1d65ba7979 100644 --- a/libavformat/oggdec.h +++ b/libavformat/oggdec.h @@ -31,6 +31,12 @@ struct ogg_codec { const int8_t *magic; uint8_t magicsize; const int8_t *name; + /** + * Attempt to process a packet as a header + * @return 1 if the packet was a valid header, + * 0 if the packet was not a header (was a data packet) + * -1 if an error occurred or for unsupported stream + */ int (*header)(AVFormatContext *, int); int (*packet)(AVFormatContext *, int); uint64_t (*gptopts)(AVFormatContext *, int, uint64_t); |