diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h index 695609f6c7..989a87a88e 100644 --- a/libavcodec/golomb.h +++ b/libavcodec/golomb.h @@ -75,7 +75,8 @@ static inline int get_ue_golomb(GetBitContext *gb){ } /** - * read unsigned exp golomb code, constraint to a max of 31 + * read unsigned exp golomb code, constraint to a max of 31. + * the return value is undefined if the stored value exceeds 31. */ static inline int get_ue_golomb_31(GetBitContext *gb){ unsigned int buf;