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

Fix decoding when size not specified

Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
parent c9326836
...@@ -160,8 +160,9 @@ int OpenVideoDecoder( vlc_object_t *p_this ) ...@@ -160,8 +160,9 @@ int OpenVideoDecoder( vlc_object_t *p_this )
/* Create video decoder */ /* Create video decoder */
params.size = sizeof( VIDDEC_Params ); params.size = sizeof( VIDDEC_Params );
params.maxHeight = p_dec->fmt_in.video.i_height ?: 720; /* TODO change the params when HD codecs are available */
params.maxWidth = p_dec->fmt_in.video.i_width ?: 1280; params.maxHeight = p_dec->fmt_in.video.i_height ?: 576 /*720*/;
params.maxWidth = p_dec->fmt_in.video.i_width ?: 720 /*1280*/;
/* The application should set the parameters to 0 to use the algorithm's default values. */ /* The application should set the parameters to 0 to use the algorithm's default values. */
params.maxFrameRate = 0; params.maxFrameRate = 0;
params.maxBitRate = 0; params.maxBitRate = 0;
......
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