forked from mia/Aegisub
Originally committed to SVN as r668.
This commit is contained in:
parent
5813033fa8
commit
e79ef00863
1 changed files with 10 additions and 3 deletions
|
@ -235,9 +235,16 @@ PClip AvisynthVideoProvider::OpenVideo(wxString _filename, bool mpeg2dec3_priori
|
||||||
// Try DirectShowSource
|
// Try DirectShowSource
|
||||||
if (!dss2) {
|
if (!dss2) {
|
||||||
if (env->FunctionExists("DirectShowSource")) {
|
if (env->FunctionExists("DirectShowSource")) {
|
||||||
const char *argnames[3] = { 0, "video", "audio" };
|
if (fps == 0.0) {
|
||||||
AVSValue args[3] = { videoFilename, true, false };
|
const char *argnames[3] = { 0, "video", "audio" };
|
||||||
script = env->Invoke("DirectShowSource", AVSValue(args,3), argnames);
|
AVSValue args[3] = { videoFilename, true, false };
|
||||||
|
script = env->Invoke("DirectShowSource", AVSValue(args,3), argnames);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
const char *argnames[4] = { 0, "video", "audio" , "fps" };
|
||||||
|
AVSValue args[4] = { videoFilename, true, false , fps };
|
||||||
|
script = env->Invoke("DirectShowSource", AVSValue(args,4), argnames);
|
||||||
|
}
|
||||||
AVSTRACE(_T("AvisynthVideoProvider::OpenVideo: Successfully opened file with DSS without audio"));
|
AVSTRACE(_T("AvisynthVideoProvider::OpenVideo: Successfully opened file with DSS without audio"));
|
||||||
usedDirectshow = true;
|
usedDirectshow = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue