Recognizing "b" as speed factor for BD media
This commit is contained in:
@ -10112,7 +10112,7 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
|
||||
" Append extra bytes to image stream. (Default is 300k)",
|
||||
" -dummy \"on\"|\"off\"",
|
||||
" If \"on\" simulate burning. Refuse if media cannot simulate.",
|
||||
" -speed number[\"k\"|\"m\"|\"[x]CD\"|\"[x]DVD\"]",
|
||||
" -speed number[\"k/s\"|\"m/s\"|\"[x]CD\"|\"[x]DVD\"|\"[x]BD\"]",
|
||||
" Set the burn speed. Default is 0 = maximum speed.",
|
||||
" -stream_recording \"on\"|\"off\"",
|
||||
" Try to circumvent slow checkread on DVD-RAM and BD-RE.",
|
||||
@ -11782,17 +11782,24 @@ int Xorriso_option_speed(struct XorrisO *xorriso, char *speed, int flag)
|
||||
} else if(*cpt=='x' || *cpt=='X')
|
||||
cpt++;
|
||||
|
||||
if(*cpt=='c' || *cpt=='C') {
|
||||
if (unit_found) {
|
||||
;
|
||||
} else if(*cpt=='c' || *cpt=='C') {
|
||||
cd_speed:;
|
||||
num*= 176.4;
|
||||
} else if(*cpt=='d' || *cpt=='D') {
|
||||
dvd_speed:;
|
||||
num*= 1385;
|
||||
} else if (!unit_found) {
|
||||
} else if(*cpt=='b' || *cpt=='B') {
|
||||
bd_speed:;
|
||||
num*= 4495.625;
|
||||
} else {
|
||||
ret= Xorriso_get_profile(xorriso, &profile_number, profile_name, 2);
|
||||
is_cd= (ret==2);
|
||||
if(is_cd)
|
||||
goto cd_speed;
|
||||
else if (profile_name[0]=='B' && profile_name[1]=='D')
|
||||
goto bd_speed;
|
||||
else
|
||||
goto dvd_speed;
|
||||
}
|
||||
|
Reference in New Issue
Block a user