libs: Let GST_VAAPI_RATECONTROL_MASK return unsigned int

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.
This commit is contained in:
Wangfei 2019-08-05 10:51:24 +08:00
parent 14ea838512
commit f5c9d86f9c

View file

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