Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bmdcapture: ignore blank frames

  • Loading branch information...
commit 224842897d239267a1212f04d0d113d367f65b0c 1 parent 4a0bf2e
Luca Barbato authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 bmdcapture.cpp
5 bmdcapture.cpp
View
@@ -344,10 +344,11 @@ HRESULT DeckLinkCaptureDelegate::VideoInputFrameArrived(IDeckLinkVideoInputFrame
// Handle Video Frame
if (videoFrame)
{
- if (videoFrame->GetFlags() & bmdFrameHasNoInputSource)
+ if (videoFrame->GetFlags() & bmdFrameHasNoInputSource) {
fprintf(stderr, "Frame received (#%lu) - No input signal detected - Frames dropped %u - Total dropped %u\n", frameCount, ++dropped, ++totaldropped);
+ return S_OK;
- {
+ } else {
AVPacket pkt;
AVCodecContext *c;
av_init_packet(&pkt);
Please sign in to comment.
Something went wrong with that request. Please try again.