libs: Let GST_VAAPI_RATECONTROL_MASK return unsigned int
authorWangfei <fei.w.wang@intel.com>
Mon, 5 Aug 2019 02:51:24 +0000 (10:51 +0800)
committerWangfei <fei.w.wang@intel.com>
Mon, 5 Aug 2019 02:51:24 +0000 (10:51 +0800)
The value return from GST_VAAPI_RATECONTROL_MASK will be used by
GST_VAAPI_POPCOUNT32 as its inpput. GST_VAAPI_POPCOUNT32 can only
deal with unsigned int. Otherwise there may be an error of out of
range of integer if we define few more rate-control mode.

gst-libs/gst/vaapi/gstvaapitypes.h

index b958e75..9ddef3c 100644 (file)
@@ -164,7 +164,7 @@ typedef enum {
 
 /* Define a mask for GstVaapiRateControl */
 #define GST_VAAPI_RATECONTROL_MASK(RC) \
-    (1 << G_PASTE(GST_VAAPI_RATECONTROL_,RC))
+    (1U << G_PASTE(GST_VAAPI_RATECONTROL_,RC))
 
 G_END_DECLS