Fixed missing initialisation when reading in JPEGs.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1627 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2005-11-23 13:38:38 +00:00
parent 5edb53e2db
commit 102843da42
2 changed files with 4 additions and 1 deletions

View File

@ -131,7 +131,6 @@ bool Image::ReadJpeg( const char *filename )
jpeg_create_decompress( cinfo );
}
FILE *infile;
if ( (infile = fopen( filename, "rb" )) == NULL )
{

View File

@ -93,6 +93,10 @@ public:
{
if ( !initialised )
Initialise();
width = 0;
height = 0;
colours = 0;
size = 0;
buffer = 0;
ReadJpeg( filename );
our_buffer = true;