Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
25d1d8ee
Commit
25d1d8ee
authored
Jan 14, 2014
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vpx decoder: check if library was built with vp8 support
It might only contain the vp9 decoder
parent
a177dd4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
configure.ac
configure.ac
+3
-0
modules/codec/vpx.c
modules/codec/vpx.c
+2
-0
No files found.
configure.ac
View file @
25d1d8ee
...
@@ -2504,6 +2504,9 @@ AS_IF([test "${enable_vpx}" != "no"],[
...
@@ -2504,6 +2504,9 @@ AS_IF([test "${enable_vpx}" != "no"],[
VLC_ADD_PLUGIN([vpx])
VLC_ADD_PLUGIN([vpx])
VLC_ADD_CPPFLAGS([vpx], [${VPX_CFLAGS}])
VLC_ADD_CPPFLAGS([vpx], [${VPX_CFLAGS}])
VLC_ADD_LIBS([vpx], [${VPX_LIBS}])
VLC_ADD_LIBS([vpx], [${VPX_LIBS}])
AC_CHECK_LIB([vpx],[vpx_codec_vp8_dx], [
VLC_ADD_CPPFLAGS([vpx], [-DENABLE_VP8_DECODER])
], [], [${VPX_LIBS}])
AC_CHECK_LIB([vpx],[vpx_codec_vp9_dx], [
AC_CHECK_LIB([vpx],[vpx_codec_vp9_dx], [
VLC_ADD_CPPFLAGS([vpx], [-DENABLE_VP9_DECODER])
VLC_ADD_CPPFLAGS([vpx], [-DENABLE_VP9_DECODER])
], [], [${VPX_LIBS}])
], [], [${VPX_LIBS}])
...
...
modules/codec/vpx.c
View file @
25d1d8ee
...
@@ -158,10 +158,12 @@ static int Open(vlc_object_t *p_this)
...
@@ -158,10 +158,12 @@ static int Open(vlc_object_t *p_this)
switch
(
dec
->
fmt_in
.
i_codec
)
switch
(
dec
->
fmt_in
.
i_codec
)
{
{
#ifdef ENABLE_VP8_DECODER
case
VLC_CODEC_VP8
:
case
VLC_CODEC_VP8
:
iface
=
&
vpx_codec_vp8_dx_algo
;
iface
=
&
vpx_codec_vp8_dx_algo
;
vp_version
=
8
;
vp_version
=
8
;
break
;
break
;
#endif
#ifdef ENABLE_VP9_DECODER
#ifdef ENABLE_VP9_DECODER
case
VLC_CODEC_VP9
:
case
VLC_CODEC_VP9
:
iface
=
&
vpx_codec_vp9_dx_algo
;
iface
=
&
vpx_codec_vp9_dx_algo
;
...
...
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