diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-01-28 02:29:01 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-07-08 13:07:06 +0200 |
commit | fbc5e36fdd0baff7202bc8b603979d68e72b69cf (patch) | |
tree | 6030bf9c05e90bb2528d3076bff639eb1270fdf2 | |
parent | ef80b1402b127e774b768d55681ca9ee47c1d57f (diff) | |
download | ffmpeg-fbc5e36fdd0baff7202bc8b603979d68e72b69cf.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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index e8888419b5..63ebe6ebfd 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -535,6 +535,7 @@ static inline const uint8_t *align_get_bits(GetBitContext *s) * @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) |