diff options
author | wm4 <wm4@nowhere> | 2016-02-29 20:59:20 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-29 20:59:20 +0100 |
commit | 4bb94f13065cf2f68dc5874be86b62a6c3ef080d (patch) | |
tree | 93fd5c7c9ebd7bf8bb18b42f1385009b650b9b5a /player/command.c | |
parent | d7de123110411ae02df5bb61dd960441d9a8ab90 (diff) | |
download | mpv-4bb94f13065cf2f68dc5874be86b62a6c3ef080d.tar.bz2 mpv-4bb94f13065cf2f68dc5874be86b62a6c3ef080d.tar.xz |
command: export canonical ffmpeg version identifier
Was printed only with "mpv -h" or so.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c index f4a78e11fb..9dc46900f2 100644 --- a/player/command.c +++ b/player/command.c @@ -3333,6 +3333,16 @@ static int mp_property_configuration(void *ctx, struct m_property *prop, return m_property_strdup_ro(action, arg, CONFIGURATION); } +static int mp_property_ffmpeg(void *ctx, struct m_property *prop, + int action, void *arg) +{ +#if HAVE_AV_VERSION_INFO + return m_property_strdup_ro(action, arg, av_version_info()); +#else + return M_PROPERTY_UNAVAILABLE; +#endif +} + static int mp_property_alias(void *ctx, struct m_property *prop, int action, void *arg) { @@ -3742,6 +3752,7 @@ static const struct m_property mp_properties[] = { {"mpv-version", mp_property_version}, {"mpv-configuration", mp_property_configuration}, + {"ffmpeg-version", mp_property_ffmpeg}, {"options", mp_property_options}, {"file-local-options", mp_property_local_options}, |