]> git.sesse.net Git - nageru/blobdiff - futatabi/video_stream.cpp
Support turning off interpolation.
[nageru] / futatabi / video_stream.cpp
index 2f8f8848e37f4d962e72f339230f05aa7e453e1c..c4cf52e0779a9093709174466afdf79bc8df5c74 100644 (file)
@@ -207,7 +207,10 @@ VideoStream::VideoStream()
        check_error();
 
        OperatingPoint op;
-       if (global_flags.interpolation_quality == 1) {
+       if (global_flags.interpolation_quality == 0) {
+               // Allocate something just for simplicity; we won't be using it.
+               op = operating_point1;
+       } else if (global_flags.interpolation_quality == 1) {
                op = operating_point1;
        } else if (global_flags.interpolation_quality == 2) {
                op = operating_point2;