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
15 15
16API changes, most recent first:16API changes, most recent first:
17 17
182015-xx-xx - xxxxxx - lavu 53.xx.100
19 Add avutil_version_info().
20
18-------- 8< --------- FFmpeg 2.7 was cut here -------- 8< ---------21-------- 8< --------- FFmpeg 2.7 was cut here -------- 8< ---------
19 22
202015-06-04 - cc17b43 - lswr 1.2.100232015-06-04 - cc17b43 - lswr 1.2.100
libavutil/avutil.h+7−0
@@ -170,6 +170,13 @@ · 169 unmodified lines
170 */170 */
171unsigned avutil_version(void);171unsigned avutil_version(void);
172 172
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 */
178const char *avutil_version_info(void);
179
173/**180/**
174 * Return the libavutil build-time configuration.181 * Return the libavutil build-time configuration.
175 */182 */
libavutil/utils.c+5−0
@@ -30,6 +30,11 @@ · 29 unmodified lines
30#include "libavutil/ffversion.h"30#include "libavutil/ffversion.h"
31const char av_util_ffversion[] = "FFmpeg version " FFMPEG_VERSION;31const char av_util_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
32 32
33const char *avutil_version_info(void)
34{
35 return FFMPEG_VERSION;
36}
37
33unsigned avutil_version(void)38unsigned avutil_version(void)
34{39{
35 static int checks_done;40 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