diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-12-10 04:18:56 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-12-10 04:18:56 +0300 |
commit | de441ad52a4d9791d93c278b4cf6867815c28b92 (patch) | |
tree | 4fd4be7aed1af72d2c7ddc6f81b3f9be26579862 /libavcodec/cbs_vp9.c | |
parent | 9bcd40c29804787ef520fe9036ed87ff668ffe5d (diff) |
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
Diffstat (limited to 'libavcodec/cbs_vp9.c')
-rw-r--r-- | libavcodec/cbs_vp9.c | 2 |
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__); \ |