From: Steinar H. Gunderson Date: Tue, 23 May 2017 19:53:22 +0000 (+0200) Subject: Nitpick: Add a little const. X-Git-Tag: 1.6.0~10 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=7c8d29249d9024bcd79224ec0d85789ee9c1c74c Nitpick: Add a little const. --- diff --git a/decklink_capture.cpp b/decklink_capture.cpp index ea95207..4db6012 100644 --- a/decklink_capture.cpp +++ b/decklink_capture.cpp @@ -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));