]> git.sesse.net Git - nageru/commitdiff
Fix interpolation quality of exported clips.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 15 Dec 2018 22:16:32 +0000 (23:16 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 15 Dec 2018 22:16:32 +0000 (23:16 +0100)
futatabi/video_stream.cpp

index 30d4971dc9ac9fced0d7328ee3c877de48bf2c2b..e41304bac948f9180b2f6f108cc121e26e950829 100644 (file)
@@ -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.