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
8a840ec4
Commit
8a840ec4
authored
Apr 14, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vda: fixed compilation and warnings
parent
f72b63df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
modules/codec/avcodec/vda.c
modules/codec/avcodec/vda.c
+5
-6
No files found.
modules/codec/avcodec/vda.c
View file @
8a840ec4
...
...
@@ -62,7 +62,7 @@ struct vlc_va_sys_t
{
struct
vda_context
hw_ctx
;
const
uint8_t
*
p_extradata
;
uint8_t
*
p_extradata
;
int
i_extradata
;
vlc_fourcc_t
i_chroma
;
...
...
@@ -161,7 +161,6 @@ static int Setup( vlc_va_t *p_external, void **pp_hw_ctx, vlc_fourcc_t *pi_chrom
p_va
->
hw_ctx
.
width
=
i_width
;
p_va
->
hw_ctx
.
height
=
i_height
;
p_va
->
hw_ctx
.
format
=
'
avc1
'
;
p_va
->
hw_ctx
.
use_sync_decoding
=
1
;
int
i_pix_fmt
=
var_CreateGetInteger
(
p_va
->
p_log
,
"avcodec-vda-pix-fmt"
);
...
...
@@ -207,7 +206,7 @@ static int Get( vlc_va_t *p_external, AVFrame *p_ff )
p_ff
->
linesize
[
i
]
=
0
;
if
(
i
==
0
||
i
==
3
)
p_ff
->
data
[
i
]
=
1
;
// dummy
p_ff
->
data
[
i
]
=
(
uint8_t
*
)
1
;
// dummy
}
return
VLC_SUCCESS
;
...
...
@@ -265,17 +264,17 @@ static void Close( vlc_va_t *p_external )
static
int
Open
(
vlc_va_t
*
external
,
int
i_codec_id
,
const
es_format_t
*
fmt
)
{
if
(
i_codec_id
!=
AV_CODEC_ID_H264
)
return
NULL
;
return
VLC_EGENERIC
;
if
(
fmt
->
p_extra
==
NULL
||
fmt
->
i_extra
<
7
)
{
msg_Warn
(
external
,
"VDA requires extradata."
);
return
NULL
;
return
VLC_EGENERIC
;
}
vlc_va_vda_t
*
p_va
=
calloc
(
1
,
sizeof
(
*
p_va
)
);
if
(
!
p_va
)
return
NULL
;
return
VLC_EGENERIC
;
p_va
->
p_log
=
VLC_OBJECT
(
external
);
p_va
->
p_extradata
=
fmt
->
p_extra
;
...
...
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