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:
parent
5edb53e2db
commit
102843da42
|
@ -131,7 +131,6 @@ bool Image::ReadJpeg( const char *filename )
|
||||||
jpeg_create_decompress( cinfo );
|
jpeg_create_decompress( cinfo );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FILE *infile;
|
FILE *infile;
|
||||||
if ( (infile = fopen( filename, "rb" )) == NULL )
|
if ( (infile = fopen( filename, "rb" )) == NULL )
|
||||||
{
|
{
|
||||||
|
|
|
@ -93,6 +93,10 @@ public:
|
||||||
{
|
{
|
||||||
if ( !initialised )
|
if ( !initialised )
|
||||||
Initialise();
|
Initialise();
|
||||||
|
width = 0;
|
||||||
|
height = 0;
|
||||||
|
colours = 0;
|
||||||
|
size = 0;
|
||||||
buffer = 0;
|
buffer = 0;
|
||||||
ReadJpeg( filename );
|
ReadJpeg( filename );
|
||||||
our_buffer = true;
|
our_buffer = true;
|
||||||
|
|
Loading…
Reference in New Issue