]> git.sesse.net Git - nageru/blobdiff - nageru/decklink_capture.cpp
Unify all the FRAME_SIZE #defines.
[nageru] / nageru / decklink_capture.cpp
index 6ccbadc339791ca12816dcc57920855f049ad404..9bf1a0e1a8f66b1889b279c0c075093ad364a065 100644 (file)
@@ -24,8 +24,6 @@
 #include "shared/memcpy_interleaved.h"
 #include "v210_converter.h"
 
-#define FRAME_SIZE (8 << 20)  // 8 MB.
-
 using namespace std;
 using namespace std::chrono;
 using namespace std::placeholders;
@@ -246,7 +244,7 @@ HRESULT STDMETHODCALLTYPE DeckLinkCapture::VideoInputFrameArrived(
                const int stride = video_frame->GetRowBytes();
                const BMDPixelFormat format = video_frame->GetPixelFormat();
                assert(format == pixel_format_to_bmd(current_pixel_format));
-               if (global_flags.ten_bit_input) {
+               if (global_flags.bit_depth > 8) {
                        assert(stride == int(v210Converter::get_v210_stride(width)));
                } else {
                        assert(stride == width * 2);