msdk: it will overflow when set max-vbv-bitrate more than 65535 Kbps
System Environment
- Platform: KBL
- Arch: x86_64
- Kernel: 4.18.0+
- libva commit 566a1388b4e5961fb73d0fd03058d50c5965a7f4
- media_driver commit 8968471978818839fed845ce918843a9ef3210c9
- mediasdk commit 750cfb4776023fb5a9b2481c1bf1956ab5568651
- gstreamer master branch 74b9e72ec6b0963661c5c370e634f6fc9444057f
- gst-plugin-bad commit 2f05ee9b
Reproduce Steps
- gst-launch-1.0 -vf filesrc location=/media_stream/assets/yuv/4k_2013_3840x2160_I420.yuv num-buffers=75 ! rawvideoparse format=i420 width=3840 height=2160 framerate=25 ! videoconvert ! video/x-raw,format=NV12 ! msdkh264enc rate-control=vbr bitrate=100000 max-vbv-bitrate=200000 gop-size=12 num-slices=1 b-frames=0 hardware=true ref-frames=1 target-usage=4 ! video/x-h264,profile=high ! h264parse ! filesink location=./test.h264
- when set bitrate as 100000, and set max-vbv-bitrate as 200000, it will overflow for max-vbv-bitrate
- (gst-launch-1.0:20613): GLib-GObject-WARNING **: value "200000" of type 'guint' is invalid or out of range for property 'max-vbv-bitrate' of type 'guint'