History

lavu: add an API function to return the FFmpeg version string

This returns something like "N-73264-gb54ac84". This is much more useful than the individual library versions, of which there are too much and which are very hard to map back to releases or git commits.

wm4 committed 11 years ago

Commit f9112661 parent db64af63 files · +15 −0Browse files

Unified · Split

3 files
  1. doc/APIchanges +3 −0
  2. libavutil/avutil.h +7 −0
  3. libavutil/utils.c +5 −0
doc/APIchanges+3−0
@@ -15,6 +15,9 @@ libavutil: 2014-08-09 · 14 unmodified lines
1515
1616 API changes, most recent first:
1717
18+2015-xx-xx - xxxxxx - lavu 53.xx.100
19+ Add avutil_version_info().
20+
1821 -------- 8< --------- FFmpeg 2.7 was cut here -------- 8< ---------
1922
2023 2015-06-04 - cc17b43 - lswr 1.2.100
libavutil/avutil.h+7−0
@@ -170,6 +170,13 @@ · 169 unmodified lines
170170 */
171171 unsigned avutil_version(void);
172172
173+/**
174+ * Return an informative version string. This usually the actual release version
175+ * number and a git hash. This string has no fixed format and can change any
176+ * time. It should never be parsed by code.
177+ */
178+const char *avutil_version_info(void);
179+
173180 /**
174181 * Return the libavutil build-time configuration.
175182 */
libavutil/utils.c+5−0
@@ -30,6 +30,11 @@ · 29 unmodified lines
3030 #include "libavutil/ffversion.h"
3131 const char av_util_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
3232
33+const char *avutil_version_info(void)
34+{
35+ return FFMPEG_VERSION;
36+}
37+
3338 unsigned avutil_version(void)
3439 {
3540 static int checks_done;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t