]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/golomb: Don't emit error message in get_ue_golomb
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 10 Jul 2020 15:48:06 +0000 (17:48 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 28 Jul 2020 09:34:38 +0000 (11:34 +0200)
Said error message is not very informative and lacked a proper logging
context; furthermore, many callers already provided more descriptive
error messages of their own. So just drop this one.

Suggested-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/golomb.h

index 7fd46a91bd932bc905de380d650342e84f5117b1..1f988d74aa0c9ebc3da003111c8bc2ac1eb1f65b 100644 (file)
@@ -87,10 +87,8 @@ static inline int get_ue_golomb(GetBitContext *gb)
         int log = 2 * av_log2(buf) - 31;
         LAST_SKIP_BITS(re, gb, 32 - log);
         CLOSE_READER(re, gb);
-        if (log < 7) {
-            av_log(NULL, AV_LOG_ERROR, "Invalid UE golomb code\n");
+        if (log < 7)
             return AVERROR_INVALIDDATA;
-        }
         buf >>= log;
         buf--;