#include <stdio.h>
#include <string.h>
+#include <sys/types.h>
#include "common/common.h"
#include "x264.h"
yuv_input_t *h = handle;
if( !h || !h->fh )
return 0;
- return fclose(h->fh);
+ fclose( h->fh );
+ free( h );
+ return 0;
}
/* YUV4MPEG2 raw 420 yuv file operation */
y4m_input_t *h = handle;
if( !h || !h->fh )
return 0;
- return fclose(h->fh);
+ fclose( h->fh );
+ free( h );
+ return 0;
}
/* avs/avi input file support under cygwin */