Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xvba-video
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
xvba-video
Commits
92b23735
Commit
92b23735
authored
Dec 23, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler errors from previous 2 commits.
parent
97e3d780
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/xvba_buffer.c
src/xvba_buffer.c
+1
-1
src/xvba_video.c
src/xvba_video.c
+2
-2
No files found.
src/xvba_buffer.c
View file @
92b23735
...
@@ -829,7 +829,7 @@ xvba_CreateBuffer(
...
@@ -829,7 +829,7 @@ xvba_CreateBuffer(
if
(
!
obj_buffer
)
if
(
!
obj_buffer
)
return
VA_STATUS_ERROR_ALLOCATION_FAILED
;
return
VA_STATUS_ERROR_ALLOCATION_FAILED
;
ASSERT
(
size
==
obj
->
buffer_size
);
ASSERT
(
size
==
obj
_buffer
->
buffer_size
);
if
(
data
)
if
(
data
)
memcpy
(
obj_buffer
->
buffer_data
,
data
,
obj_buffer
->
buffer_size
);
memcpy
(
obj_buffer
->
buffer_data
,
data
,
obj_buffer
->
buffer_size
);
...
...
src/xvba_video.c
View file @
92b23735
...
@@ -215,7 +215,7 @@ int surface_add_association(
...
@@ -215,7 +215,7 @@ int surface_add_association(
if
(
obj_surface
->
assocs
[
i
]
->
subpicture
==
assoc
->
subpicture
)
{
if
(
obj_surface
->
assocs
[
i
]
->
subpicture
==
assoc
->
subpicture
)
{
/* XXX: this should not happen, but replace it in the interim */
/* XXX: this should not happen, but replace it in the interim */
ASSERT
(
obj_surface
->
assocs
[
i
]
->
surface
==
assoc
->
surface
);
ASSERT
(
obj_surface
->
assocs
[
i
]
->
surface
==
assoc
->
surface
);
SubpictureAssociation
*
a
=
obj_surface
->
assocs
[
i
];
SubpictureAssociation
P
a
=
obj_surface
->
assocs
[
i
];
free
(
a
);
/* XXX: release previous association */
free
(
a
);
/* XXX: release previous association */
obj_surface
->
assocs
[
i
]
=
assoc
;
obj_surface
->
assocs
[
i
]
=
assoc
;
return
0
;
return
0
;
...
@@ -230,7 +230,7 @@ int surface_add_association(
...
@@ -230,7 +230,7 @@ int surface_add_association(
/* Append this subpicture association */
/* Append this subpicture association */
SubpictureAssociationP
*
assocs
;
SubpictureAssociationP
*
assocs
;
assocs
=
realloc_buffer
(
assocs
=
realloc_buffer
(
&
obj_surface
->
assocs
,
(
void
**
)
&
obj_surface
->
assocs
,
&
obj_surface
->
assocs_count_max
,
&
obj_surface
->
assocs_count_max
,
1
+
obj_surface
->
assocs_count
,
1
+
obj_surface
->
assocs_count
,
sizeof
(
obj_surface
->
assocs
[
0
])
sizeof
(
obj_surface
->
assocs
[
0
])
...
...
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