From: Steinar H. Gunderson Date: Sat, 15 Dec 2018 22:16:32 +0000 (+0100) Subject: Fix interpolation quality of exported clips. X-Git-Tag: 1.8.0~16 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=299f7273d2c27e2de40510f8256fb5d4de465014;hp=ffe2343de3fe982cc52a449b13f01137819ed42d;p=nageru Fix interpolation quality of exported clips. --- diff --git a/futatabi/video_stream.cpp b/futatabi/video_stream.cpp index 30d4971..e41304b 100644 --- a/futatabi/video_stream.cpp +++ b/futatabi/video_stream.cpp @@ -208,13 +208,14 @@ VideoStream::VideoStream(AVFormatContext *file_avctx) check_error(); OperatingPoint op; - if (flow_initialized_interpolation_quality == 1) { + if (global_flags.interpolation_quality == 0 || + global_flags.interpolation_quality == 1) { op = operating_point1; - } else if (flow_initialized_interpolation_quality == 2) { + } else if (global_flags.interpolation_quality == 2) { op = operating_point2; - } else if (flow_initialized_interpolation_quality == 3) { + } else if (global_flags.interpolation_quality == 3) { op = operating_point3; - } else if (flow_initialized_interpolation_quality == 4) { + } else if (global_flags.interpolation_quality == 4) { op = operating_point4; } else { // Quality 0 will be changed to 1 in flags.cpp.