diff options
author | James Almer <jamrial@gmail.com> | 2021-07-06 21:13:26 +0300 |
---|---|---|
committer | Jean-Baptiste Kempf <jb@videolan.org> | 2021-07-09 19:21:12 +0300 |
commit | 895cda326200ee95f8db13c90e739a47252681d3 (patch) | |
tree | 68163c1d06c3de7d71f0cc69bd56f33362b91a60 /include | |
parent | 123c58196f4c632dd15fa637a60b6ceda40f93e4 (diff) |
lib: return DAV1D_ERR(ENOENT) if no seqhdr OBU was found
Helps differentiating actual errors in the buffer data or passed-in arguments
with scenarios like empty buffers or containing OBUs other than Sequence
Header.
Diffstat (limited to 'include')
-rw-r--r-- | include/dav1d/dav1d.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/dav1d/dav1d.h b/include/dav1d/dav1d.h index a379a8c..97df383 100644 --- a/include/dav1d/dav1d.h +++ b/include/dav1d/dav1d.h @@ -105,7 +105,12 @@ DAV1D_API int dav1d_open(Dav1dContext **c_out, const Dav1dSettings *s); * @param buf The data to be parser. * @param sz Size of the data. * - * @return 0 on success, or < 0 (a negative DAV1D_ERR code) on error. + * @return + * 0: Success, and out is filled with the parsed Sequence Header + * OBU parameters. + * DAV1D_ERR(ENOENT): No Sequence Header OBUs were found in the buffer. + * other negative DAV1D_ERR codes: Invalid data in the buffer, invalid passed-in + * arguments, and other errors during parsing. * * @note It is safe to feed this function data containing other OBUs than a * Sequence Header, as they will simply be ignored. If there is more than |