Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libva
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
libva
Commits
a59133d8
Commit
a59133d8
authored
Feb 01, 2009
by
Austin Yuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issues reported by Klockwork
Signed-off-by:
Austin Yuan
<
shengquan.yuan@intel.com
>
parent
16a51b8c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
dummy_drv_video/dummy_drv_video.c
dummy_drv_video/dummy_drv_video.c
+6
-0
src/X11/va_x11.c
src/X11/va_x11.c
+2
-2
src/va.c
src/va.c
+4
-4
No files found.
dummy_drv_video/dummy_drv_video.c
View file @
a59133d8
...
...
@@ -736,6 +736,12 @@ VAStatus dummy_CreateContext(
obj_context
->
picture_height
=
picture_height
;
obj_context
->
num_render_targets
=
num_render_targets
;
obj_context
->
render_targets
=
(
VASurfaceID
*
)
malloc
(
num_render_targets
*
sizeof
(
VASurfaceID
));
if
(
obj_context
->
render_targets
==
NULL
)
{
vaStatus
=
VA_STATUS_ERROR_ALLOCATION_FAILED
;
return
vaStatus
;
}
for
(
i
=
0
;
i
<
num_render_targets
;
i
++
)
{
if
(
NULL
==
SURFACE
(
render_targets
[
i
]))
...
...
src/X11/va_x11.c
View file @
a59133d8
src/va.c
View file @
a59133d8
...
...
@@ -143,10 +143,10 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
char
*
driver_path
=
(
char
*
)
malloc
(
strlen
(
driver_dir
)
+
strlen
(
driver_name
)
+
strlen
(
DRIVER_EXTENSION
)
+
2
);
str
cpy
(
driver_path
,
driver_dir
);
str
cat
(
driver_path
,
"/"
);
str
cat
(
driver_path
,
driver_name
);
str
cat
(
driver_path
,
DRIVER_EXTENSION
);
str
ncpy
(
driver_path
,
driver_dir
,
strlen
(
driver_dir
)
);
str
ncat
(
driver_path
,
"/"
,
strlen
(
"/"
)
);
str
ncat
(
driver_path
,
driver_name
,
strlen
(
driver_name
)
);
str
ncat
(
driver_path
,
DRIVER_EXTENSION
,
strlen
(
DRIVER_EXTENSION
)
);
va_infoMessage
(
"Trying to open %s
\n
"
,
driver_path
);
...
...
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