Skip to content

Commit

Permalink
EncoderConfig: Fix GetMaxBFrameCount conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrain34 committed Nov 25, 2024
1 parent b47e0db commit a8741e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vk_video_encoder/libs/VkVideoEncoder/VkEncoderConfigH264.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ struct EncoderConfigH264 : public EncoderConfig {
// 2. First h.264 determine the rate control parameters
virtual bool InitRateControl();

virtual uint8_t GetMaxBFrameCount() { return h264EncodeCapabilities.maxBPictureL0ReferenceCount; }
virtual uint8_t GetMaxBFrameCount() { return static_cast<uint8_t>(h264EncodeCapabilities.maxBPictureL0ReferenceCount); }

bool GetRateControlParameters(VkVideoEncodeRateControlInfoKHR *rcInfo,
VkVideoEncodeRateControlLayerInfoKHR *pRcLayerInfo,
Expand Down
2 changes: 1 addition & 1 deletion vk_video_encoder/libs/VkVideoEncoder/VkEncoderConfigH265.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ struct EncoderConfigH265 : public EncoderConfig {
// 2. First h.265 determine the rate control parameters
virtual bool InitRateControl();

virtual uint8_t GetMaxBFrameCount() { return h265EncodeCapabilities.maxBPictureL0ReferenceCount; }
virtual uint8_t GetMaxBFrameCount() { return static_cast<uint8_t>(h265EncodeCapabilities.maxBPictureL0ReferenceCount); }

bool GetRateControlParameters(VkVideoEncodeRateControlInfoKHR *rcInfo,
VkVideoEncodeRateControlLayerInfoKHR *pRcLayerInfo,
Expand Down

0 comments on commit a8741e4

Please sign in to comment.