aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-01-28 02:29:01 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2018-01-31 23:47:15 +0100
commitf606a943d31aae3e801afcc6ea2407996d1dfb34 (patch)
tree627b33276cdfb18582113bb4639366b7a8b5ddc4
parent54a7d3efc436426f4e0f1180878ecdc6712854d3 (diff)
downloadffmpeg-f606a943d31aae3e801afcc6ea2407996d1dfb34.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 959e07816b..72f8b5f29d 100644
--- a/libavcodec/get_bits.h
+++ b/libavcodec/get_bits.h
@@ -555,6 +555,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)