while ((dp = readdir(fd)) != NULL) {
if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
continue; /* skip self and parent */
- if(!number_files) {
+ if (!number_files) {
char *temp1 = strstr(dp->d_name, "-");
char *temp2 = strstr(dp->d_name, ".");
return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
}
- if(_handle->image_count <= _handle->current_resolution_count) {
+ if (_handle->image_count <= _handle->current_resolution_count) {
gif_data->frames = (mm_util_gif_frame_data **) realloc(gif_data->frames, (_handle->image_count + 1) * sizeof(mm_util_gif_frame_data *));
if (gif_data->frames == NULL) {
image_util_error("Error - OUT_OF_MEMORY");
image_util_error("Error allocating gif frames.");
return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
}
- if(_handle->image_count <= _handle->current_delay_count) {
+ if (_handle->image_count <= _handle->current_delay_count) {
gif_data->frames = (mm_util_gif_frame_data **) realloc(gif_data->frames, (_handle->image_count + 1) * sizeof(mm_util_gif_frame_data *));
if (gif_data->frames == NULL) {
image_util_error("Error - OUT_OF_MEMORY");
image_util_error("Error allocating gif frames.");
return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
}
- if(_handle->image_count <= _handle->current_buffer_count) {
+ if (_handle->image_count <= _handle->current_buffer_count) {
gif_data->frames = (mm_util_gif_frame_data **) realloc(gif_data->frames, (_handle->image_count + 1) * sizeof(mm_util_gif_frame_data *));
if (gif_data->frames == NULL) {
image_util_error("Error - OUT_OF_MEMORY");