You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Implement avformat_version().
Originally committed as revision 14667 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
#define FFMPEG_AVFORMAT_H
|
#define FFMPEG_AVFORMAT_H
|
||||||
|
|
||||||
#define LIBAVFORMAT_VERSION_MAJOR 52
|
#define LIBAVFORMAT_VERSION_MAJOR 52
|
||||||
#define LIBAVFORMAT_VERSION_MINOR 19
|
#define LIBAVFORMAT_VERSION_MINOR 20
|
||||||
#define LIBAVFORMAT_VERSION_MICRO 0
|
#define LIBAVFORMAT_VERSION_MICRO 0
|
||||||
|
|
||||||
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
|
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
|
||||||
@@ -35,6 +35,11 @@
|
|||||||
|
|
||||||
#define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
|
#define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the LIBAVFORMAT_VERSION_INT constant.
|
||||||
|
*/
|
||||||
|
unsigned avformat_version(void);
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdio.h> /* FILE */
|
#include <stdio.h> /* FILE */
|
||||||
#include "libavcodec/avcodec.h"
|
#include "libavcodec/avcodec.h"
|
||||||
|
@@ -33,6 +33,11 @@
|
|||||||
* various utility functions for use within FFmpeg
|
* various utility functions for use within FFmpeg
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
unsigned avformat_version(void)
|
||||||
|
{
|
||||||
|
return LIBAVFORMAT_VERSION_INT;
|
||||||
|
}
|
||||||
|
|
||||||
static void av_frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den);
|
static void av_frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den);
|
||||||
static void av_frac_add(AVFrac *f, int64_t incr);
|
static void av_frac_add(AVFrac *f, int64_t incr);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user