Skip to content

Commit

Permalink
Fix MSVC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
emericg committed May 16, 2018
1 parent 612e10f commit db44898
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion Codec/demosaicframes.c
Original file line number Diff line number Diff line change
Expand Up @@ -5021,7 +5021,6 @@ float *LoadCube64_3DLUT(DECODER *decoder, CFHDDATA *cfhddata, int *lutsize)
float *LUT = NULL;
bool useLUT = false;
CFLook_Header CFLKhdr;
char crcname[256];
FILE *fp = NULL;
int err = 0;

Expand Down
4 changes: 0 additions & 4 deletions Codec/lutpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ void OverrideCFHDDATA(DECODER *decoder, unsigned char *lpCurrentBuffer, int nWor
if (decoder->image_dev_only || (metadatastart = MetaDataFindFirst(buf, samplesize,
&metadatasize, &tag, &size, &type)))
{
int firstmetadatachunk = 1;
//DAN20080710 -- reset the value before loading them, as some RAW streams didn't have all the
//value, which causes a database reset to fail (switch color database would not switch for
//Premiere.)
Expand Down Expand Up @@ -308,9 +307,6 @@ void OverrideCFHDDATA(DECODER *decoder, unsigned char *lpCurrentBuffer, int nWor

if (decoder->image_dev_only || memcmp( &lastGUID, &cfhddata->clip_guid, sizeof(cfhddata->clip_guid) ) != 0)
{
// fprintf(stderr, "newclip \n");
int i;

if (cfhddata->ignore_disk_database == false)
{
checkdiskinfo = 1; // CD See if it is a new clip Need to set if not ignoring disk
Expand Down
2 changes: 1 addition & 1 deletion Common/MessageQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class CMessageSemaphore
if (handle)
{
long count;
bool result = ReleaseSemaphore(handle, 1, &count);
BOOL result = ReleaseSemaphore(handle, 1, &count);
assert(result);
return result != 0;
}
Expand Down
4 changes: 3 additions & 1 deletion DecoderSDK/CFHDMetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#if __APPLE__
#include <string.h>
#include "CoreFoundation/CoreFoundation.h"
#else
#endif

#ifndef _WIN32
#include <mm_malloc.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion DecoderSDK/SampleDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ int GetPixelSize(CFHD_PixelFormat format)
break;

default:
throw CFHD_ERROR_BADFORMAT;
pixelSize = 0;
break;
}

Expand Down

0 comments on commit db44898

Please sign in to comment.