Quote:
Originally Posted by HolyWu
The clips loaded by vsavsreader could not be spliced.
|
I think that this is a VS's bug.
from vsstdlib.c
Code:
static int findCommonVi(const VSNodeRef **nodes, int num, VSVideoInfo *outvi, int ignorelength, const VSAPI *vsapi) {
int mismatch = 0;
int i;
const VSVideoInfo *vi;
*outvi = *vsapi->getVideoInfo(nodes[0]);
for (i = 1; i < num; i++) {
vi = vsapi->getVideoInfo(nodes[i]);
if (outvi->width != vi->width || outvi->height != vi->height) {
outvi->width = 0;
outvi->height = 0;
mismatch = 1;
}
if (outvi->format != vi->format) {
outvi->format = 0;
mismatch = 1;
}
if ((outvi->numFrames < vi->numFrames && outvi->numFrames) || (!vi->numFrames && outvi->numFrames)) {
outvi->numFrames = vi->numFrames;
if (!ignorelength)
mismatch = 1;
}
}
return mismatch;
}
Neither ”!=” nor "==" is used for
comparison of two structs.