]> git.sesse.net Git - nageru/commitdiff
Nitpick: Add a little const.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 23 May 2017 19:53:22 +0000 (21:53 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 23 May 2017 19:53:22 +0000 (21:53 +0200)
decklink_capture.cpp

index ea9520705781bcb31da57713e0a0be1d0174e1ee..4db60120f3040a0325325959c7edd5a0463cc5a8 100644 (file)
@@ -340,8 +340,8 @@ HRESULT STDMETHODCALLTYPE DeckLinkCapture::VideoInputFrameArrived(
        if (video_frame) {
                video_format.has_signal = !(video_frame->GetFlags() & bmdFrameHasNoInputSource);
 
-               int width = video_frame->GetWidth();
-               int height = video_frame->GetHeight();
+               const int width = video_frame->GetWidth();
+               const int height = video_frame->GetHeight();
                const int stride = video_frame->GetRowBytes();
                const BMDPixelFormat format = video_frame->GetPixelFormat();
                assert(format == pixel_format_to_bmd(current_pixel_format));