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
dc4b64c9
Commit
dc4b64c9
authored
Jan 20, 2013
by
Timo Rothenpieler
Committed by
Jean-Baptiste Kempf
Jul 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make vaapi decoder compatible with latest libva changes
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
10ee7ff4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/codec/avcodec/vaapi.c
modules/codec/avcodec/vaapi.c
+7
-2
No files found.
modules/codec/avcodec/vaapi.c
View file @
dc4b64c9
...
@@ -41,6 +41,11 @@
...
@@ -41,6 +41,11 @@
#include "va.h"
#include "va.h"
#include "copy.h"
#include "copy.h"
#ifndef VA_SURFACE_ATTRIB_SETTABLE
#define vaCreateSurfaces(d, f, w, h, s, ns, a, na) \
vaCreateSurfaces(d, w, h, f, ns, s)
#endif
static
int
Create
(
vlc_va_t
*
,
int
,
const
es_format_t
*
);
static
int
Create
(
vlc_va_t
*
,
int
,
const
es_format_t
*
);
static
void
Delete
(
vlc_va_t
*
);
static
void
Delete
(
vlc_va_t
*
);
...
@@ -258,8 +263,8 @@ static int CreateSurfaces( vlc_va_sys_t *p_va, void **pp_hw_ctx, vlc_fourcc_t *p
...
@@ -258,8 +263,8 @@ static int CreateSurfaces( vlc_va_sys_t *p_va, void **pp_hw_ctx, vlc_fourcc_t *p
/* Create surfaces */
/* Create surfaces */
VASurfaceID
pi_surface_id
[
p_va
->
i_surface_count
];
VASurfaceID
pi_surface_id
[
p_va
->
i_surface_count
];
if
(
vaCreateSurfaces
(
p_va
->
p_display
,
i_width
,
i_height
,
VA_RT_FORMAT_YUV420
,
if
(
vaCreateSurfaces
(
p_va
->
p_display
,
VA_RT_FORMAT_YUV420
,
i_width
,
i_height
,
p
_va
->
i_surface_count
,
pi_surface_id
)
)
p
i_surface_id
,
p_va
->
i_surface_count
,
NULL
,
0
)
)
{
{
for
(
int
i
=
0
;
i
<
p_va
->
i_surface_count
;
i
++
)
for
(
int
i
=
0
;
i
<
p_va
->
i_surface_count
;
i
++
)
p_va
->
p_surface
[
i
].
i_id
=
VA_INVALID_SURFACE
;
p_va
->
p_surface
[
i
].
i_id
=
VA_INVALID_SURFACE
;
...
...
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