diff --git a/libavfilter/vf_signature.c b/libavfilter/vf_signature.c index 147eb66fc1..5e4caba86e 100644 --- a/libavfilter/vf_signature.c +++ b/libavfilter/vf_signature.c @@ -390,6 +390,9 @@ static int xml_export(AVFilterContext *ctx, StreamContext *sc, const char* filen FILE* f; unsigned int pot3[5] = { 3*3*3*3, 3*3*3, 3*3, 3, 1 }; + if (!sc->coarseend->last) + return AVERROR(EINVAL); // No frames ? + f = fopen(filename, "w"); if (!f) { int err = AVERROR(EINVAL);