- std::wstring path = filename + L"." + *ext;\r
- bool loop = boost::find(params, L"LOOP") != params.end();\r
-\r
- size_t start = 0;\r
- size_t length = std::numeric_limits<size_t>::max();\r
- \r
- auto seek_it = boost::find(params, L"SEEK");\r
- if(seek_it != params.end())\r
- {\r
- if(++seek_it != params.end())\r
- start = boost::lexical_cast<size_t>(*seek_it);\r
- }\r
+ auto path = filename + L"." + *ext;\r
+ auto loop = boost::range::find(params, L"LOOP") != params.end();\r
+ auto start = core::get_param(L"SEEK", params, 0);\r
+ auto length = core::get_param(L"LENGTH", params, std::numeric_limits<size_t>::max());\r
+ auto filter_str = core::get_param<std::wstring>(L"FILTER", params, L""); \r
+ \r
+ boost::replace_all(filter_str, L"DEINTERLACE", L"YADIF=0:-1");\r
+ boost::replace_all(filter_str, L"DEINTERLACE_BOB", L"YADIF=1:-1");\r