aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-01-28 02:29:01 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2018-02-19 02:40:54 +0100
commit6a01b65034a1f5b3ca1c08e2fc242123a083cdee (patch)
tree98231034e514945650e545f8901df61859b51252
parent78b1d57a4bc4337816dd5e88b6c2fab20cefdefb (diff)
downloadffmpeg-6a01b65034a1f5b3ca1c08e2fc242123a083cdee.tar.gz
avcodec/get_bits: Document the return code of get_vlc2()
Found-by: kierank Reviewed-by: Kieran Kunhya <kieran618@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4a94ff4ccd4f2329c599e37cabe4152dae60359e) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/get_bits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index 30e9da311f..0ccbf4dfd2 100644
--- a/libavcodec/get_bits.h
+++ b/libavcodec/get_bits.h
@@ -574,6 +574,7 @@ void ff_free_vlc(VLC *vlc);
* @param max_depth is the number of times bits bits must be read to completely
* read the longest vlc code
* = (max_vlc_length + bits - 1) / bits
+ * @returns the code parsed or -1 if no vlc matches
*/
static av_always_inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2],
int bits, int max_depth)