]> git.sesse.net Git - nageru/commitdiff
Fix a pessimizing move (Clang warning).
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 17 Jun 2017 12:03:30 +0000 (14:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 17 Jun 2017 12:03:30 +0000 (14:03 +0200)
decklink_output.cpp

index 544e2edd333017d080b989a859004ba0f04bd6e4..a19d0a5e2e44440c9f79ad07f860ec629e194c37 100644 (file)
@@ -262,7 +262,7 @@ void DeckLinkOutput::send_frame(GLuint y_tex, GLuint cbcr_tex, YCbCrLumaCoeffici
                last_frame_had_mode_mismatch = false;
        }
 
-       unique_ptr<Frame> frame = move(get_frame());
+       unique_ptr<Frame> frame = get_frame();
        if (global_flags.ten_bit_output) {
                chroma_subsampler->create_v210(y_tex, cbcr_tex, width, height, frame->uyvy_tex);
        } else {