胡斌

fix bug in linux for loading codec param from cfg file

... ... @@ -28,7 +28,7 @@ vector<fileinfo> media_files[2];
void run_shell_cmd(const char * cmd)
{
if (only_print){
printf("\n%s", cmd);
printf("%s\n", cmd);
}
else {
system(cmd);
... ... @@ -247,7 +247,8 @@ void load_codec_param()
GetExePath();
strcpy(cfgfile, exe_path);
#else
strcpy(cfgfile , "~/";
strcpy(cfgfile ,getenv("HOME"));
strcat(cfgfile ,"/");
#endif
strcat(cfgfile, "merge_av.cfg");
ifstream fin(cfgfile);
... ...