fix: fix casting issues and variable names

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x 2024-12-01 00:00:00 +00:00
parent 56a20601b9
commit 72c88244eb
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ static int process_frames(
switch (processor->get_processing_mode()) { switch (processor->get_processing_mode()) {
case PROCESSING_MODE_FILTER: { case PROCESSING_MODE_FILTER: {
Filter *filter = dynamic_cast<Filter *>(processor); Filter *filter = static_cast<Filter *>(processor);
ret = filter->filter(frame.get(), &raw_processed_frame); ret = filter->filter(frame.get(), &raw_processed_frame);
if (ret < 0 && ret != AVERROR(EAGAIN)) { if (ret < 0 && ret != AVERROR(EAGAIN)) {
av_strerror(ret, errbuf, sizeof(errbuf)); av_strerror(ret, errbuf, sizeof(errbuf));
@ -154,7 +154,7 @@ static int process_frames(
break; break;
} }
case PROCESSING_MODE_INTERPOLATE: { 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 time_step = 1.0f / static_cast<float>(processor_config->frm_rate_mul);
float current_time_step = time_step; float current_time_step = time_step;

View File

@ -702,7 +702,7 @@ int main(int argc, char **argv) {
} }
#ifdef _WIN32 #ifdef _WIN32
std::wstring shader_path_str = arguments.shader_path.wstring(); std::wstring shader_path_str = arguments.libplacebo_shader_path.wstring();
#else #else
std::string shader_path_str = arguments.libplacebo_shader_path.string(); std::string shader_path_str = arguments.libplacebo_shader_path.string();
#endif #endif