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
4e024078
Commit
4e024078
authored
Feb 05, 2014
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau/avcodec: fix build for older ffmpeg
parent
bba3b522
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/hw/vdpau/avcodec.c
modules/hw/vdpau/avcodec.c
+2
-1
No files found.
modules/hw/vdpau/avcodec.c
View file @
4e024078
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include <vlc_xlib.h>
#include <vlc_xlib.h>
#include "vlc_vdpau.h"
#include "vlc_vdpau.h"
#include "../../codec/avcodec/va.h"
#include "../../codec/avcodec/va.h"
#include "../../codec/avcodec/avcommon_compat.h"
static
int
Open
(
vlc_va_t
*
,
int
,
const
es_format_t
*
);
static
int
Open
(
vlc_va_t
*
,
int
,
const
es_format_t
*
);
static
void
Close
(
vlc_va_t
*
);
static
void
Close
(
vlc_va_t
*
);
...
@@ -279,7 +280,7 @@ static int Open(vlc_va_t *va, int codec, const es_format_t *fmt)
...
@@ -279,7 +280,7 @@ static int Open(vlc_va_t *va, int codec, const es_format_t *fmt)
if
(
unlikely
(
sys
==
NULL
))
if
(
unlikely
(
sys
==
NULL
))
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
#if
(LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55, 26, 0)
)
#if
LIBAVCODEC_VERSION_CHECK(55, 26, 0, 42, 100
)
sys
->
context
=
av_vdpau_alloc_context
();
sys
->
context
=
av_vdpau_alloc_context
();
#else
#else
sys
->
context
=
calloc
(
1
,
sizeof
(
*
sys
->
context
));
sys
->
context
=
calloc
(
1
,
sizeof
(
*
sys
->
context
));
...
...
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