diff --git a/vs/d2vsource.cpp b/vs/d2vsource.cpp index dab51d4..87933bd 100644 --- a/vs/d2vsource.cpp +++ b/vs/d2vsource.cpp @@ -58,6 +58,10 @@ const VSFrameRef *VS_CC d2vGetFrame(int n, int activationReason, void **instance /* Grab our direct-rendered frame. */ s = (VSFrameRef *) d->frame->opaque; + if (!s) { + vsapi->setFilterError("Seek pattern broke d2vsource! Please send a sample.", frameCtx); + return NULL; + } /* If our width and height are the same, just return it. */ if (d->vi.width == d->aligned_width && d->vi.height == d->aligned_height) {