Skip to content

Commit d37405c

Browse files
kasper93Traneptora
authored andcommitted
common/av_log: make FFmpeg libs ABI mismatch log clearer
And exit, instead of aborting.
1 parent 962fb5f commit d37405c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/av_log.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ void check_library_versions(struct mp_log *log, int v)
222222
if (l->buildv > l->runv ||
223223
AV_VERSION_MAJOR(l->buildv) != AV_VERSION_MAJOR(l->runv))
224224
{
225-
fprintf(stderr, "%s: %d.%d.%d -> %d.%d.%d\n",
226-
l->name, V(l->buildv), V(l->runv));
227-
abort();
225+
mp_fatal(log, "%s: build version %d.%d.%d incompatible with runtime version %d.%d.%d\n",
226+
l->name, V(l->buildv), V(l->runv));
227+
exit(1);
228228
}
229229
}
230230
}

0 commit comments

Comments
 (0)