aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-10 02:18:56 +0100
committerJames Almer <jamrial@gmail.com>2019-07-21 01:04:28 -0300
commit84b94fdd05d24f161f6559bfef63a8db049e0cc7 (patch)
treee26176441c857c5ef95e2f49cd7b51e7751c6029 /libavcodec
parenta2132139852c57e71c731d10e5dc20e97342c289 (diff)
downloadffmpeg-84b94fdd05d24f161f6559bfef63a8db049e0cc7.tar.gz
lavc/cbs_vp9: Make variable prob unsigned.
Silences a warning with clang: libavcodec/cbs_vp9_syntax_template.c:220:17: warning: implicit conversion from 'int' to 'int8_t' (aka 'signed char') changes value from 255 to -1 (cherry picked from commit de441ad52a4d9791d93c278b4cf6867815c28b92)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cbs_vp9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_vp9.c b/libavcodec/cbs_vp9.c
index c03ce986c0..f145694e22 100644
--- a/libavcodec/cbs_vp9.c
+++ b/libavcodec/cbs_vp9.c
@@ -305,7 +305,7 @@ static int cbs_vp9_write_le(CodedBitstreamContext *ctx, PutBitContext *pbc,
#define prob(name, subs, ...) do { \
uint8_t prob_coded; \
- int8_t prob; \
+ uint8_t prob; \
xf(1, name.prob_coded, prob_coded, subs, __VA_ARGS__); \
if (prob_coded) \
xf(8, name.prob, prob, subs, __VA_ARGS__); \