Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
adda5957
Commit
adda5957
authored
Mar 12, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libav*: create a new avcommon_compat.h file for backward compatibility
This patch includes necessary defines
parent
5107430d
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
498 additions
and
13 deletions
+498
-13
modules/codec/Modules.am
modules/codec/Modules.am
+1
-0
modules/codec/avcodec/avcodec.h
modules/codec/avcodec/avcodec.h
+2
-8
modules/codec/avcodec/avcommon.h
modules/codec/avcodec/avcommon.h
+7
-4
modules/codec/avcodec/avcommon_compat.h
modules/codec/avcodec/avcommon_compat.h
+485
-0
modules/demux/Modules.am
modules/demux/Modules.am
+1
-0
modules/stream_out/Modules.am
modules/stream_out/Modules.am
+2
-1
No files found.
modules/codec/Modules.am
View file @
adda5957
...
...
@@ -91,6 +91,7 @@ endif
### FFmpeg/libav ###
libavcodec_plugin_la_SOURCES = \
avcodec/avcommon_compat.h \
avcodec/avcommon.h \
avcodec/video.c \
avcodec/subtitle.c \
...
...
modules/codec/avcodec/avcodec.h
View file @
adda5957
...
...
@@ -22,6 +22,8 @@
*****************************************************************************/
#include "chroma.h"
#include "avcommon.h"
/* VLC <-> avcodec tables */
int
GetFfmpegCodec
(
vlc_fourcc_t
i_fourcc
,
int
*
pi_cat
,
int
*
pi_ffmpeg_codec
,
const
char
**
ppsz_name
);
...
...
@@ -275,11 +277,3 @@ int ffmpeg_OpenCodec( decoder_t *p_dec );
# define HAVE_AVCODEC_MT
#endif
/* LIBAVCODEC_VERSION_CHECK checks for the right version of libav and FFmpeg
* a is the major version
* b and c the minor and micro versions of libav
* d and e the minor and micro versions of FFmpeg */
#define LIBAVCODEC_VERSION_CHECK( a, b, c, d, e ) \
(LIBAVCODEC_VERSION_MICRO < 100 && LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( a, b, c ) ) || \
(LIBAVCODEC_VERSION_MICRO >= 100 && LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( a, d, e ) )
modules/codec/avcodec/avcommon.h
View file @
adda5957
...
...
@@ -21,6 +21,9 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef AVCOMMON_H
#define AVCOMMON_H 1
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
...
...
@@ -31,6 +34,8 @@
#include <limits.h>
#include "avcommon_compat.h"
/* LIBAVUTIL_VERSION_CHECK checks for the right version of libav and FFmpeg
* a is the major version
* b and c the minor and micro versions of libav
...
...
@@ -72,10 +77,6 @@ static inline void vlc_init_avcodec(void)
# include <libavutil/avutil.h>
# include <libavutil/dict.h>
#if LIBAVUTIL_VERSION_MAJOR < 52 && !defined(AV_CPU_FLAG_MMXEXT)
# define AV_CPU_FLAG_MMXEXT AV_CPU_FLAG_MMX2
#endif
#define AV_OPTIONS_TEXT "Advanced options."
#define AV_OPTIONS_LONGTEXT "Advanced options, in the form {opt=val,opt2=val2} ."
...
...
@@ -94,3 +95,5 @@ static inline AVDictionary *vlc_av_get_options(const char *psz_opts)
return
options
;
}
#endif
#endif
modules/codec/avcodec/avcommon_compat.h
0 → 100644
View file @
adda5957
This diff is collapsed.
Click to expand it.
modules/demux/Modules.am
View file @
adda5957
...
...
@@ -45,6 +45,7 @@ libavformat_plugin_la_SOURCES = avformat/demux.c \
../codec/avcodec/chroma.c \
../codec/avcodec/cpu.c \
../codec/avcodec/avcommon.h \
../codec/avcodec/avcommon_compat.h \
vobsub.h \
avformat/avformat.c avformat/avformat.h
if ENABLE_SOUT
...
...
modules/stream_out/Modules.am
View file @
adda5957
...
...
@@ -6,7 +6,8 @@ SOURCES_stream_out_duplicate = duplicate.c
SOURCES_stream_out_es = es.c
SOURCES_stream_out_display = display.c
SOURCES_stream_out_gather = gather.c
SOURCES_stream_out_switcher = switcher.c ../codec/avcodec/cpu.c
SOURCES_stream_out_switcher = switcher.c ../codec/avcodec/cpu.c \
../codec/avcodec/avcommon_compat.h ../codec/avcodec/avcommon.h
SOURCES_stream_out_bridge = bridge.c
SOURCES_stream_out_mosaic_bridge = mosaic_bridge.c
SOURCES_stream_out_autodel = autodel.c
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment