libavformat/oggdec.h: Document packet function return value.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Romain Beauxis 2025-05-09 18:43:21 -05:00 committed by Michael Niedermayer
parent 0d7172a9ff
commit 6d54af6599
No known key found for this signature in database
GPG key ID: B18E8928B3948D64

View file

@ -38,6 +38,12 @@ struct ogg_codec {
* -1 if an error occurred or for unsupported stream
*/
int (*header)(AVFormatContext *, int);
/**
* Attempt to process a packet as a data packet
* @return < 0 (AVERROR) code or -1 on error
* == 0 if the packet was a regular data packet.
* == 0 or 1 if the packet was a header from a chained bitstream.
*/
int (*packet)(AVFormatContext *, int);
/**
* Translate a granule into a timestamp.