Commit f8b6b113 authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Paul Saman

davinci viddec: Conform to API, use 0 as default value

Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
parent 72950831
......@@ -327,16 +327,14 @@ int OpenVideoDecoder( vlc_object_t *p_this )
/* Create video decoder */
params.size = sizeof( VIDDEC_Params );
/* FIXME: put maximum settings accepted by the hardware */
params.maxHeight = p_dec->fmt_in.video.i_height ?: 720;
params.maxWidth = p_dec->fmt_in.video.i_width ?: 1280;
params.maxFrameRate = 25000; /* in frames per 1000 seconds */
params.maxBitRate = 1000000; /* in bits per second */
msg_Dbg( p_dec, "Trying to decode %dx%d @%.2f fps (%.2f kbps)",
(int)params.maxWidth, (int)params.maxHeight,
(float)params.maxFrameRate / 1000,
(float)params.maxBitRate / 1000 );
params.maxHeight = p_dec->fmt_in.video.i_height;
params.maxWidth = p_dec->fmt_in.video.i_width;
/* The application should set the parameters to 0 to use the algorithm's default values. */
params.maxFrameRate = 0;
params.maxBitRate = 0;
msg_Dbg( p_dec, "Creating decoder for %dx%d",
(int)params.maxWidth, (int)params.maxHeight );
params.dataEndianness = XDM_BYTE;
params.forceChromaFormat = VlcChromaToXdm( i_chroma );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment