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
b0b1c324
Commit
b0b1c324
authored
Sep 27, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vda: move initialization from setup to open
parent
877fb3b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
modules/codec/avcodec/vda.c
modules/codec/avcodec/vda.c
+9
-10
No files found.
modules/codec/avcodec/vda.c
View file @
b0b1c324
...
...
@@ -149,6 +149,15 @@ static int Open(vlc_va_t *va,
sys
->
i_width
=
avctx
->
width
;
sys
->
i_height
=
avctx
->
height
;
int
i_ret
=
av_vda_default_init2
(
avctx
,
sys
->
vdactx
);
msg_Dbg
(
va
,
"Creating VDA decoder %i"
,
i_ret
);
if
(
i_ret
!=
0
)
{
av_vda_default_free
(
avctx
);
return
VLC_EGENERIC
;
}
va
->
sys
=
sys
;
va
->
description
=
(
char
*
)
"VDA"
;
va
->
setup
=
Setup
;
...
...
@@ -167,16 +176,6 @@ static void Close( vlc_va_t *va, AVCodecContext *avctx )
static
int
Setup
(
vlc_va_t
*
va
,
AVCodecContext
*
avctx
,
vlc_fourcc_t
*
pi_chroma
)
{
vlc_va_sys_t
*
sys
=
va
->
sys
;
int
i_ret
=
av_vda_default_init2
(
avctx
,
sys
->
vdactx
);
msg_Dbg
(
va
,
"Creating VDA decoder %i"
,
i_ret
);
if
(
i_ret
!=
0
)
return
VLC_EGENERIC
;
*
pi_chroma
=
VLC_CODEC_I420
;
return
VLC_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