shithub: opusfile

Download patch

ref: 0adf7303ecf08776205e85b5b65ee8bd3419945c
parent: 37f837542f14d50b52bdca5504f376b532a244a0
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Fri May 12 18:23:30 EDT 2017

Minor documentation fix.

Clarify that the value returned by op_current_link() is strictly
 less than the value returned by op_link_count() for seekable
 sources.

--- a/include/opusfile.h
+++ b/include/opusfile.h
@@ -1575,8 +1575,8 @@
    \param _of The \c OggOpusFile from which to retrieve the current link index.
    \return The index of the current link on success, or a negative value on
             failure.
-           For seekable streams, this is a number between 0 and the value
-            returned by op_link_count().
+           For seekable streams, this is a number between 0 (inclusive) and the
+            value returned by op_link_count() (exclusive).
            For unseekable streams, this value starts at 0 and increments by one
             each time a new link is encountered (even though op_link_count()
             always returns 1).