diff --git a/src/image.cpp b/src/image.cpp index 1ee11f6..77308f4 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -550,6 +550,7 @@ extern "C" void VS_CC imageFileCreate(const VSMap *in, VSMap *out, void *userDat VSVideoFormat blank_alpha_format; vsapi->getVideoFormatByID(&blank_alpha_format, pfGray8, core); d.blank_alpha = vsapi->newVideoFrame(&blank_alpha_format, d.vi.width, d.vi.height, nullptr, core); + vsapi->mapSetInt(vsapi->getFramePropertiesRW(d.blank_alpha), "_ColorRange", 0, maReplace); for (int i = 0; i < 4; i++) { uint8_t *ptr = vsapi->getWritePtr(i < 3 ? d.blank_rgb : d.blank_alpha, i % 3); diff --git a/src/text.c b/src/text.c index 61c13ae..2f7cd65 100644 --- a/src/text.c +++ b/src/text.c @@ -211,6 +211,7 @@ static const VSFrame *VS_CC assGetFrame(int n, int activationReason, NULL, core); assRender(dst, a, vsapi, img); + vsapi->mapSetInt(vsapi->getFramePropertiesRW(a), "_ColorRange", 0, maReplace); vsapi->mapConsumeFrame(vsapi->getFramePropertiesRW(dst), "_Alpha", a, maAppend); vsapi->freeFrame(d->lastframe); d->lastframe = dst;