add more debug code

This commit is contained in:
Isaac Connor 2016-09-12 21:34:18 -04:00
parent 7b0a14ee72
commit 6366d137bc
1 changed files with 2 additions and 0 deletions

View File

@ -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);