From 9392863d1bf2b6b7a73375e678fec9f3f7a1dd58 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 18 Feb 2009 11:57:11 +0000 Subject: [PATCH] Clarify get_ue_golomb_31() behavior with >31. Originally committed as revision 17429 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/golomb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h index 695609f6c..989a87a88 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; -- 2.11.0