X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fcommon.h;h=b7c4686721b5522f2e56f1a5953e1d8dc5839bd2;hb=c593146bf3fab6290c71cbbb974e0a756e43f5e0;hp=1121ae8eccb0029d92f7f3519b5dd3a87da29750;hpb=746a8e0074297794f4dd1eeae4d463cd939057ab;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/common.h b/libhb/common.h index 1121ae8e..b7c46867 100644 --- a/libhb/common.h +++ b/libhb/common.h @@ -18,6 +18,20 @@ #include #include +#if defined( SYS_MINGW ) +# define fseek fseeko64 +# define ftell ftello64 +# undef fseeko +# define fseeko fseeko64 +# undef ftello +# define ftello ftello64 +# define flockfile(...) +# define funlockfile(...) +# define getc_unlocked getc +# undef off_t +# define off_t off64_t +#endif + #ifndef MIN #define MIN( a, b ) ( (a) > (b) ? (b) : (a) ) #endif @@ -27,7 +41,7 @@ #define EVEN( a ) ( (a) + ( (a) & 1 ) ) #define MULTIPLE_16( a ) ( 16 * ( ( (a) + 8 ) / 16 ) ) -#define MULTIPLE_MOD( a, b ) ( b * ( ( (a) + (b / 2) - 1) / b ) ) +#define MULTIPLE_MOD( a, b ) ((b==1)?a:( b * ( ( (a) + (b / 2) - 1) / b ) )) #define HB_DVD_READ_BUFFER_SIZE 2048 @@ -231,6 +245,7 @@ struct hb_job_s int subtitle_force; char * native_language; + int frame_to_stop; // declare eof when we hit this frame int64_t pts_to_stop; // declare eof when we pass this pts in // the time-linearized input stream int start_at_preview; // if non-zero, encoding will start