]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/wnv1.c
avcodec/cuvid: use capability check instead of dummy decoder
[ffmpeg] / libavcodec / wnv1.c
index 9ff99b2f98da98848fa65f7348aad0ee6c41d975..126c01a02d85c09267d758dd2437f4c7d0f9d56a 100644 (file)
@@ -52,7 +52,7 @@ static inline int wnv1_get_code(WNV1Context *w, int base_value)
     if (v == 15)
         return ff_reverse[get_bits(&w->gb, 8 - w->shift)];
     else
-        return base_value + ((v - 7) << w->shift);
+        return base_value + ((v - 7U) << w->shift);
 }
 
 static int decode_frame(AVCodecContext *avctx,