shithub: opusfile

Download patch

ref: 87b951c338fb3835e12221bb786e0f30ccbd6f50
parent: 4d75f855f36e72d0270e6de9c181bb660b8e0991
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Wed Aug 28 20:59:23 EDT 2013

Document that we will always have at least 1 link.

Otherwise we would have failed to open the stream.

--- a/include/opusfile.h
+++ b/include/opusfile.h
@@ -1414,7 +1414,7 @@
    The actual number of links is not known until the stream is fully opened.
    \param _of The \c OggOpusFile from which to retrieve the link count.
    \return For fully-open seekable sources, this returns the total number of
-            links in the whole stream.
+            links in the whole stream, which will be at least 1.
            For partially-open or unseekable sources, this always returns 1.*/
 int op_link_count(OggOpusFile *_of) OP_ARG_NONNULL(1);