History

lavd/decklink_dec: fix indentation

Marton Balint committed 10 years ago

Commit dfc561a1 parent 2f3015c1 file · +11 −11Browse files

Unified · Split

libavdevice/decklink_dec.cpp+11−11
@@ -310,17 +310,17 @@ HRESULT decklink_input_callback::VideoInputFrameArrived( · 309 unmodified lines
310 310
311 if (videoFrame->GetFlags() & bmdFrameHasNoInputSource) {311 if (videoFrame->GetFlags() & bmdFrameHasNoInputSource) {
312 if (ctx->draw_bars && videoFrame->GetPixelFormat() == bmdFormat8BitYUV) {312 if (ctx->draw_bars && videoFrame->GetPixelFormat() == bmdFormat8BitYUV) {
313 unsigned bars[8] = {313 unsigned bars[8] = {
314 0xEA80EA80, 0xD292D210, 0xA910A9A5, 0x90229035,314 0xEA80EA80, 0xD292D210, 0xA910A9A5, 0x90229035,
315 0x6ADD6ACA, 0x51EF515A, 0x286D28EF, 0x10801080 };315 0x6ADD6ACA, 0x51EF515A, 0x286D28EF, 0x10801080 };
316 int width = videoFrame->GetWidth();316 int width = videoFrame->GetWidth();
317 int height = videoFrame->GetHeight();317 int height = videoFrame->GetHeight();
318 unsigned *p = (unsigned *)frameBytes;318 unsigned *p = (unsigned *)frameBytes;
319 319
320 for (int y = 0; y < height; y++) {320 for (int y = 0; y < height; y++) {
321 for (int x = 0; x < width; x += 2)321 for (int x = 0; x < width; x += 2)
322 *p++ = bars[(x * 8) / width];322 *p++ = bars[(x * 8) / width];
323 }323 }
324 }324 }
325 325
326 if (!no_video) {326 if (!no_video) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t