Commit 964d2459 authored by Ilkka Ollakka's avatar Ilkka Ollakka

x264: actually check limit for level is told between 10 and 51

parent 9e3623e0
...@@ -844,7 +844,7 @@ static int Open ( vlc_object_t *p_this ) ...@@ -844,7 +844,7 @@ static int Open ( vlc_object_t *p_this )
if( us_atof (psz_val) < 6 && us_atof (psz_val) > 0 ) if( us_atof (psz_val) < 6 && us_atof (psz_val) > 0 )
p_sys->param.i_level_idc = (int) (10 * us_atof (psz_val) p_sys->param.i_level_idc = (int) (10 * us_atof (psz_val)
+ .5); + .5);
else if( atoi(psz_val) > 0 ) else if( atoi(psz_val) >= 10 && atoi(psz_val) <= 51 )
p_sys->param.i_level_idc = atoi (psz_val); p_sys->param.i_level_idc = atoi (psz_val);
free( psz_val ); free( psz_val );
} }
......
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