@@ -119,7 +119,6 @@ void ak_pipeline_destroy(void)
119119int ak_video_create (char index , hal_vidconfig * config )
120120{
121121 int ret ;
122-
123122 ak_venc_codec codec ;
124123 char ratemode ;
125124 ak_venc_prof profile ;
@@ -151,10 +150,10 @@ int ak_video_create(char index, hal_vidconfig *config)
151150
152151 {
153152 ak_venc_cnf channel = {.codec = codec , .width = config -> width , .height = config -> height ,
154- .minQual = MIN (MAX (config -> minQual , 20 ), 50 ),
155- .maxQual = MIN (MAX (config -> maxQual ? config -> maxQual : 50 , 20 ), 50 ),
156- .dstFps = config -> framerate , .gop = config -> gop , .maxBitrate = config -> maxBitrate ,
157- .profile = profile , .subChnOn = index ,
153+ .minQual = MIN (MAX (config -> minQual , 20 ), 50 ),
154+ .maxQual = MIN (MAX (config -> maxQual ? config -> maxQual : 50 , 20 ), 50 ),
155+ .dstFps = config -> framerate , .gop = config -> gop , .maxBitrate = config -> maxBitrate ,
156+ .profile = profile , .subChnOn = index ,
158157 .output = index ? AK_VENC_OUT_SUBSTRM : AK_VENC_OUT_MAINSTRM , .vbrModeOn = ratemode };
159158
160159 if (!(_ak_venc_dev [index ] = ak_venc .fnEnableChannel (& channel )))
@@ -247,7 +246,7 @@ int ak_system_init(char *snrConfig)
247246
248247 // Disable the watchdog timer if it isn't already
249248 hal_registry (0x080080E8 , & val , OP_WRITE );
250-
249+
251250 if (ak_vi .fnLoadSensorConfig (snrConfig ))
252251 HAL_DANGER ("ak_vi" , "Loading the sensor config failed"
253252 " with %#x!\n%s\n" , ret = ak_sys .fnGetErrorNum (),
@@ -256,4 +255,4 @@ int ak_system_init(char *snrConfig)
256255 return ret ;
257256}
258257
259- #endif
258+ #endif
0 commit comments