aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-07-05 02:21:45 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-12 22:42:21 +0200
commit7cf5b83f6fa367f99aefc1321bafc0a7e8db33cd (patch)
treeae3641bcab6d1b45eca47cbc5945509b6b588139
parente5af1c6e91e86b184101ef2abb49178ff409703b (diff)
downloadffmpeg-7cf5b83f6fa367f99aefc1321bafc0a7e8db33cd.tar.gz
avcodec/golomb: Document return for get_ur_golomb_jpegls() and get_sr_golomb_flac()
Found while reviewing code related to CID1604409 Overflowed return value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/golomb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h
index 164c2583b6..9f60fe0397 100644
--- a/libavcodec/golomb.h
+++ b/libavcodec/golomb.h
@@ -424,6 +424,8 @@ static inline int get_ur_golomb(GetBitContext *gb, int k, int limit,
/**
* read unsigned golomb rice code (jpegls).
+ *
+ * @returns -1 on error
*/
static inline int get_ur_golomb_jpegls(GetBitContext *gb, int k, int limit,
int esc_len)
@@ -535,6 +537,8 @@ static inline int get_sr_golomb(GetBitContext *gb, int k, int limit,
/**
* read signed golomb rice code (flac).
+ *
+ * @returns INT_MIN on error
*/
static inline int get_sr_golomb_flac(GetBitContext *gb, int k, int limit,
int esc_len)