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
c2d0d864
Commit
c2d0d864
authored
Jun 08, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/xvba_video.c: xvba_CreateConfig() extra checking
Add extra checking.
parent
01b162ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/xvba_video.c
src/xvba_video.c
+3
-0
No files found.
src/xvba_video.c
View file @
c2d0d864
...
...
@@ -391,6 +391,8 @@ xvba_CreateConfig(
return
VA_STATUS_ERROR_UNSUPPORTED_PROFILE
;
configID
=
object_heap_allocate
(
&
driver_data
->
config_heap
);
if
(
configID
==
VA_INVALID_ID
)
return
VA_STATUS_ERROR_ALLOCATION_FAILED
;
obj_config
=
XVBA_CONFIG
(
configID
);
if
(
!
obj_config
)
return
VA_STATUS_ERROR_ALLOCATION_FAILED
;
...
...
@@ -429,6 +431,7 @@ xvba_DestroyConfig(
return
VA_STATUS_ERROR_INVALID_CONFIG
;
object_heap_free
(
&
driver_data
->
config_heap
,
(
object_base_p
)
obj_config
);
config_id
=
VA_INVALID_ID
;
return
VA_STATUS_SUCCESS
;
}
...
...
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