Skip to content

Instantly share code, notes, and snippets.

@mainyaa
Created November 16, 2015 07:52
Show Gist options
  • Save mainyaa/1fcdc6b3b83323a5d18f to your computer and use it in GitHub Desktop.
Save mainyaa/1fcdc6b3b83323a5d18f to your computer and use it in GitHub Desktop.
ffmpegのDecklink使用時のno signalのカラーバーを黒画面にする
diff --git libavdevice/decklink_dec.cpp libavdevice/decklink_dec.cpp
index 747f47e..d43faed 100644
--- libavdevice/decklink_dec.cpp
+++ libavdevice/decklink_dec.cpp
@@ -235,8 +235,8 @@ HRESULT decklink_input_callback::VideoInputFrameArrived(
if (videoFrame->GetFlags() & bmdFrameHasNoInputSource) {
if (videoFrame->GetPixelFormat() == bmdFormat8BitYUV) {
unsigned bars[8] = {
- 0xEA80EA80, 0xD292D210, 0xA910A9A5, 0x90229035,
- 0x6ADD6ACA, 0x51EF515A, 0x286D28EF, 0x10801080 };
+ 0x10801080, 0x10801080, 0x10801080, 0x10801080,
+ 0x10801080, 0x10801080, 0x10801080, 0x10801080 };
int width = videoFrame->GetWidth();
int height = videoFrame->GetHeight();
unsigned *p = (unsigned *)frameBytes;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment