Permalink
Browse files

bmdcapture: ignore blank frames

  • Loading branch information...
1 parent 4a0bf2e commit 224842897d239267a1212f04d0d113d367f65b0c @lu-zero committed Oct 19, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 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);

0 comments on commit 2248428

Please sign in to comment.