On Thu, 18 Jun 2020, lance.lmw...@gmail.com wrote:

From: Limin Wang <lance.lmw...@gmail.com>

Signed-off-by: Limin Wang <lance.lmw...@gmail.com>
---
libavdevice/decklink_dec.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
index 82106aa..90569dc 100644
--- a/libavdevice/decklink_dec.cpp
+++ b/libavdevice/decklink_dec.cpp
@@ -751,7 +751,7 @@ HRESULT decklink_input_callback::VideoInputFrameArrived(
                }
            }

-            if (!no_video) {
+            if (no_video) {
                av_log(avctx, AV_LOG_WARNING, "Frame received (#%lu) - No input 
signal detected "
                        "- Frames dropped %u\n", ctx->frameCount, 
++ctx->dropped);
            }

No, this is good as is, the !no_video condition ensures that it is only logged once when the input actually disappears, and not for every consecutive frame with no input.

Regards,
Marton
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to