--- a/mpeg_encode/jpeg.c +++ b/mpeg_encode/jpeg.c @@ -77,13 +77,10 @@ /* make it happier.... */ #undef DCTSIZE2 -#include "jpeg/jpeglib.h" - +#include "jpeglib.h" #define HEADER_SIZE 607 /*JFIF header size used on output images*/ - - /*=======================================================================* * * * JMovie2JPEG * @@ -514,8 +511,12 @@ #ifdef JPEG4 buffer_height = 8; /* could be 2, 4,8 rows high */ #else - buffer_height = cinfo.max_v_samp_factor * cinfo.min_DCT_scaled_size; -#endif + #if JPEG_LIB_VERSION >= 80 + buffer_height = cinfo.max_v_samp_factor * cinfo.min_DCT_v_scaled_size; + #else + buffer_height = cinfo.max_v_samp_factor * cinfo.min_DCT_scaled_size; + #endif +#endif /* JPEG4 */ for(cp=0,compptr = cinfo.comp_info;cp