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
f8b6b113
Commit
f8b6b113
authored
Aug 26, 2008
by
Rafaël Carré
Committed by
Jean-Paul Saman
Nov 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
davinci viddec: Conform to API, use 0 as default value
Signed-off-by:
Jean-Paul Saman
<
jean-paul.saman@m2x.nl
>
parent
72950831
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
modules/codec/davinci/viddec.c
modules/codec/davinci/viddec.c
+8
-10
No files found.
modules/codec/davinci/viddec.c
View file @
f8b6b113
...
@@ -327,16 +327,14 @@ int OpenVideoDecoder( vlc_object_t *p_this )
...
@@ -327,16 +327,14 @@ int OpenVideoDecoder( vlc_object_t *p_this )
/* Create video decoder */
/* Create video decoder */
params
.
size
=
sizeof
(
VIDDEC_Params
);
params
.
size
=
sizeof
(
VIDDEC_Params
);
/* FIXME: put maximum settings accepted by the hardware */
params
.
maxHeight
=
p_dec
->
fmt_in
.
video
.
i_height
;
params
.
maxHeight
=
p_dec
->
fmt_in
.
video
.
i_height
?:
720
;
params
.
maxWidth
=
p_dec
->
fmt_in
.
video
.
i_width
;
params
.
maxWidth
=
p_dec
->
fmt_in
.
video
.
i_width
?:
1280
;
/* The application should set the parameters to 0 to use the algorithm's default values. */
params
.
maxFrameRate
=
25000
;
/* in frames per 1000 seconds */
params
.
maxFrameRate
=
0
;
params
.
maxBitRate
=
1000000
;
/* in bits per second */
params
.
maxBitRate
=
0
;
msg_Dbg
(
p_dec
,
"Trying to decode %dx%d @%.2f fps (%.2f kbps)"
,
msg_Dbg
(
p_dec
,
"Creating decoder for %dx%d"
,
(
int
)
params
.
maxWidth
,
(
int
)
params
.
maxHeight
,
(
int
)
params
.
maxWidth
,
(
int
)
params
.
maxHeight
);
(
float
)
params
.
maxFrameRate
/
1000
,
(
float
)
params
.
maxBitRate
/
1000
);
params
.
dataEndianness
=
XDM_BYTE
;
params
.
dataEndianness
=
XDM_BYTE
;
params
.
forceChromaFormat
=
VlcChromaToXdm
(
i_chroma
);
params
.
forceChromaFormat
=
VlcChromaToXdm
(
i_chroma
);
...
...
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