mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-28 06:59:11 +00:00
fix: fix casting issues and variable names
Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
parent
56a20601b9
commit
72c88244eb
@ -129,7 +129,7 @@ static int process_frames(
|
||||
|
||||
switch (processor->get_processing_mode()) {
|
||||
case PROCESSING_MODE_FILTER: {
|
||||
Filter *filter = dynamic_cast<Filter *>(processor);
|
||||
Filter *filter = static_cast<Filter *>(processor);
|
||||
ret = filter->filter(frame.get(), &raw_processed_frame);
|
||||
if (ret < 0 && ret != AVERROR(EAGAIN)) {
|
||||
av_strerror(ret, errbuf, sizeof(errbuf));
|
||||
@ -154,7 +154,7 @@ static int process_frames(
|
||||
break;
|
||||
}
|
||||
case PROCESSING_MODE_INTERPOLATE: {
|
||||
Interpolator *interpolator = dynamic_cast<Interpolator *>(processor);
|
||||
Interpolator *interpolator = static_cast<Interpolator *>(processor);
|
||||
|
||||
float time_step = 1.0f / static_cast<float>(processor_config->frm_rate_mul);
|
||||
float current_time_step = time_step;
|
||||
|
@ -702,7 +702,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
std::wstring shader_path_str = arguments.shader_path.wstring();
|
||||
std::wstring shader_path_str = arguments.libplacebo_shader_path.wstring();
|
||||
#else
|
||||
std::string shader_path_str = arguments.libplacebo_shader_path.string();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user