History

avcodec/golomb: Document return for get_ur_golomb_jpegls() and get_sr_golomb_flac()

Found while reviewing code related to CID1604409 Overflowed return value

Michael Niedermayer committed 2 years ago

Commit 7cf5b831 parent e5af1c61 file · +4 −0Browse files

Unified · Split

libavcodec/golomb.h+4−0
@@ -424,6 +424,8 @@ static inline int get_ur_golomb(GetBitContext *gb, int k, int limit, · 423 unmodified lines
424424
425425 /**
426426 * read unsigned golomb rice code (jpegls).
427+ *
428+ * @returns -1 on error
427429 */
428430 static inline int get_ur_golomb_jpegls(GetBitContext *gb, int k, int limit,
429431 int esc_len)
@@ -535,6 +537,8 @@ static inline int get_sr_golomb(GetBitContext *gb, int k, int limit, · 105 unmodified lines
535537
536538 /**
537539 * read signed golomb rice code (flac).
540+ *
541+ * @returns INT_MIN on error
538542 */
539543 static inline int get_sr_golomb_flac(GetBitContext *gb, int k, int limit,
540544 int esc_len)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t