Advertisement
Guest User

Paul

a guest
Sep 2nd, 2009
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. Author: Romain Perier <mrpouet@gentoo.org>
  2. Subject: Ensure gdk-pixbuf is backward compatible with jpeg6, even if it's works with jpeg7
  3. Date: 2009-09-01 10:27 UTC
  4.  
  5. ---
  6. gdk-pixbuf/io-jpeg.c | 5 ++++-
  7. 1 files changed, 4 insertions(+), 1 deletions(-)
  8.  
  9. diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c
  10. index cf8c9ed..9af55ba 100644
  11. --- a/gdk-pixbuf/io-jpeg.c
  12. +++ b/gdk-pixbuf/io-jpeg.c
  13. @@ -921,8 +921,11 @@ gdk_pixbuf__jpeg_image_load_increment (gpointer data,
  14. return FALSE;
  15. }
  16. }
  17. -
  18. +#if JPEG_LIB_VERSION >= 70
  19. + for (cinfo->scale_denom = 2; cinfo->scale_denom <= 16; cinfo->scale_denom *= 2) {
  20. +#else
  21. for (cinfo->scale_denom = 2; cinfo->scale_denom <= 8; cinfo->scale_denom *= 2) {
  22. +#endif
  23. jpeg_calc_output_dimensions (cinfo);
  24. if (cinfo->output_width < width || cinfo->output_height < height) {
  25. cinfo->scale_denom /= 2;
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement