Browse Source

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 4a94ff4ccd)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.2.11
Michael Niedermayer 8 years ago
parent
commit
fbc5e36fdd
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/get_bits.h

+ 1
- 0
libavcodec/get_bits.h View File

@@ -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 * @param max_depth is the number of times bits bits must be read to completely
* read the longest vlc code * read the longest vlc code
* = (max_vlc_length + bits - 1) / bits * = (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], static av_always_inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2],
int bits, int max_depth) int bits, int max_depth)


Loading…
Cancel
Save