|author||wm4 <wm4@nowhere>||2019-09-26 19:58:17 +0200|
|committer||wm4 <wm4@nowhere>||2019-09-26 19:58:17 +0200|
player: document FFmpeg ABI rules we intentionally violate
That's just a single one. It used to be more, when FFmpeg still required using pointless accessors for tons of fields, which historically broke compatibility with Libav. (I think I wrote the patch to deprecate that crap and to allow direct access myself.) There may be more exceptions, but I forgot about them. Another point is that we don't really trust FFmpeg ABI stability, though.
1 files changed, 2 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c
index 04acf3cc72..4ab25a942c 100644
@@ -388,6 +388,8 @@ int mp_initialize(struct MPContext *mpctx, char **options)
// Distro maintainers who patch this out should be aware that mpv
// intentionally ignores ABI in some places where it's not possible to
// get by without violating it.
+ // Known API/ABI violations:
+ // - AVIOContext.bytes_read (demux_lavf.c)
MP_FATAL(mpctx, "\nmpv was compiled against a different version of "
"FFmpeg/Libav than the shared\nlibrary it is linked against. "