History

lavd/decklink_dec: fix indentation

Marton Balint committed 10 years ago

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

Showing the changes to libavdevice/decklink_dec.cpp (1 of 1 file). Show all

Unified · Split

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