common/av_log: make FFmpeg libs ABI mismatch log clearer

And exit, instead of aborting.
This commit is contained in:
Kacper Michajłow
2025-03-03 10:02:02 +01:00
committed by Leo Izen
parent 962fb5fde8
commit d37405c8f3
+3 -3
View File
@@ -222,9 +222,9 @@ void check_library_versions(struct mp_log *log, int v)
if (l->buildv > l->runv ||
AV_VERSION_MAJOR(l->buildv) != AV_VERSION_MAJOR(l->runv))
{
fprintf(stderr, "%s: %d.%d.%d -> %d.%d.%d\n",
l->name, V(l->buildv), V(l->runv));
abort();
mp_fatal(log, "%s: build version %d.%d.%d incompatible with runtime version %d.%d.%d\n",
l->name, V(l->buildv), V(l->runv));
exit(1);
}
}
}