]> git.sesse.net Git - ffmpeg/commitdiff
lavc/cbs_vp9: Make variable prob unsigned.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 10 Dec 2018 01:18:56 +0000 (02:18 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 10 Dec 2018 01:18:56 +0000 (02:18 +0100)
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

libavcodec/cbs_vp9.c

index c03ce986c07e5ef1f467110e4eedaf2498172b0c..f145694e221e4e0f3aa229a3a801c5c2984d31ea 100644 (file)
@@ -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__); \