revert some structure changes

This commit is contained in:
Isaac Connor 2016-04-01 14:14:02 -04:00
parent 210873e5ae
commit 86c888d079
1 changed files with 4 additions and 2 deletions

View File

@ -123,7 +123,8 @@ int FfmpegCamera::PreCapture()
return( 0 ); return( 0 );
} }
int FfmpegCamera::Capture( Image &image ) { int FfmpegCamera::Capture( Image &image )
{
if (!mCanCapture){ if (!mCanCapture){
return -1; return -1;
} }
@ -153,7 +154,8 @@ int FfmpegCamera::Capture( Image &image ) {
} }
int frameComplete = false; int frameComplete = false;
while ( !frameComplete ) { while ( !frameComplete )
{
int avResult = av_read_frame( mFormatContext, &packet ); int avResult = av_read_frame( mFormatContext, &packet );
if ( avResult < 0 ) { if ( avResult < 0 ) {
char errbuf[AV_ERROR_MAX_STRING_SIZE]; char errbuf[AV_ERROR_MAX_STRING_SIZE];