msdk: add missing breaks

This commit is contained in:
Xiang, Haihao 2018-11-28 12:39:58 +08:00 committed by Víctor Manuel Jáquez Leal
parent a1aae3fd92
commit 0e7e425bb9
2 changed files with 2 additions and 0 deletions

View file

@ -180,6 +180,7 @@ ensure_bitrate_control (GstMsdkEnc * thiz)
case MFX_RATECONTROL_AVBR:
mfx->Accuracy = thiz->accuracy;
mfx->Convergence = thiz->convergence;
break;
case MFX_RATECONTROL_VBR:
option2->MaxFrameSize = thiz->max_frame_size * 1000;

View file

@ -104,6 +104,7 @@ gst_msdk_get_mfx_status_from_va_status (VAStatus va_res)
break;
case VA_STATUS_ERROR_INVALID_PARAMETER:
mfxRes = MFX_ERR_INVALID_VIDEO_PARAM;
break;
default:
mfxRes = MFX_ERR_UNKNOWN;
break;