aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-10 17:48:06 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-28 11:34:38 +0200
commit39c4b788297b7883d833d68fad3707ce50e01472 (patch)
tree988d2fc8cb8e5db2aa0e52f3932ef067f88df202 /libavcodec
parentdfd12ee053c0dbcb590ad5c758df6bb3b38777ea (diff)
downloadffmpeg-39c4b788297b7883d833d68fad3707ce50e01472.tar.gz
avcodec/golomb: Don't emit error message in get_ue_golomb
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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/golomb.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h
index 7fd46a91bd..1f988d74aa 100644
--- a/libavcodec/golomb.h
+++ b/libavcodec/golomb.h
@@ -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--;