From 6366d137bc5f5f57d2a9e4c0bfcb8f60f41ab6e8 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 12 Sep 2016 21:34:18 -0400 Subject: [PATCH] add more debug code --- src/zm_ffmpeg_camera.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zm_ffmpeg_camera.cpp b/src/zm_ffmpeg_camera.cpp index 533d0de8e..1033e64e0 100644 --- a/src/zm_ffmpeg_camera.cpp +++ b/src/zm_ffmpeg_camera.cpp @@ -547,7 +547,9 @@ int FfmpegCamera::CaptureAndRecord( Image &image, bool recording, char* event_fi int frameComplete = false; while ( !frameComplete ) { +Debug(5, "Before av_read_frame"); int avResult = av_read_frame( mFormatContext, &packet ); +Debug(5, "After av_read_frame (%d)", avResult ); if ( avResult < 0 ) { char errbuf[AV_ERROR_MAX_STRING_SIZE]; av_strerror(avResult, errbuf, AV_ERROR_MAX_STRING_SIZE);