emile: prevent segv when rotation is asked and there is no opts provided.

Thanks Vivek for pointing the problem.

@fix
This commit is contained in:
Cedric BAIL 2015-10-22 11:29:36 -07:00
parent b1600b2daa
commit 508143efba
1 changed files with 1 additions and 1 deletions

View File

@ -1633,7 +1633,7 @@ _emile_jpeg_data(Emile_Image *image,
memset(&cinfo, 0, sizeof(cinfo));
if (prop->rotated)
{
degree = opts->degree;
degree = opts ? opts->degree : 0;
if (degree == 90 || degree == 270)
change_wh = EINA_TRUE;
}