[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30808] trunk/blender/source/blender/imbuf /intern/jpeg.c: Fix #22875: image browser crashes on true colour jpg.
Brecht Van Lommel
brecht at blender.org
Tue Jul 27 16:40:48 CEST 2010
- Previous message (by thread): [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30807] trunk/blender/source/blender/ editors/interface/interface_layout.c: Fix #22950: width of a layout object does not propagate to its sub-layout
- Next message (by thread): [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30809] trunk/blender: Smoke Patch + additions: a) Applying patch #22765 by Miika H?\195?\164m? \195?\164l?\195?\164inen (domain border collision settings, vorticity settings, time scale, non absolute density, smooth high res emitter, initial velocity multiplier, high res strength available to be set to 0), b) Additions by me: --Initial velocity is now per flow object, not per domain; --Using boundingbox as standard display mode for domains (was wire before) ; --When adding a flow object, an initial nice SmokeParticle system is added too with nice initial settings (life=1, no_render, unborn, etc) fitting smoke simulation; --Adaptive timesteps introduced to the smoke sim ( depending on the magnitude of the velocity) because it was quite unstable when used for fire simulations, still needs to be tested and will also slow down some simulations.
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Revision: 30808
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30808
Author: blendix
Date: 2010-07-27 16:40:48 +0200 (Tue, 27 Jul 2010)
Log Message:
-----------
Fix #22875: image browser crashes on true colour jpg. The skip_input_data
callback was not correct, modified now to based on jpeg_mem_src as included
with libjpeg.
Modified Paths:
--------------
trunk/blender/source/blender/imbuf/intern/jpeg.c
Modified: trunk/blender/source/blender/imbuf/intern/jpeg.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/jpeg.c 2010-07-27 12:11:25 UTC (rev 30807)
+++ trunk/blender/source/blender/imbuf/intern/jpeg.c 2010-07-27 14:40:48 UTC (rev 30808)
@@ -156,7 +156,10 @@
{
my_src_ptr src = (my_src_ptr) cinfo->src;
- src->pub.next_input_byte = src->pub.next_input_byte + num_bytes;
+ if(num_bytes > 0) {
+ src->pub.next_input_byte = src->pub.next_input_byte + num_bytes;
+ src->pub.bytes_in_buffer = src->pub.bytes_in_buffer - num_bytes;
+ }
}
- Previous message (by thread): [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30807] trunk/blender/source/blender/ editors/interface/interface_layout.c: Fix #22950: width of a layout object does not propagate to its sub-layout
- Next message (by thread): [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30809] trunk/blender: Smoke Patch + additions: a) Applying patch #22765 by Miika H?\195?\164m? \195?\164l?\195?\164inen (domain border collision settings, vorticity settings, time scale, non absolute density, smooth high res emitter, initial velocity multiplier, high res strength available to be set to 0), b) Additions by me: --Initial velocity is now per flow object, not per domain; --Using boundingbox as standard display mode for domains (was wire before) ; --When adding a flow object, an initial nice SmokeParticle system is added too with nice initial settings (life=1, no_render, unborn, etc) fitting smoke simulation; --Adaptive timesteps introduced to the smoke sim ( depending on the magnitude of the velocity) because it was quite unstable when used for fire simulations, still needs to be tested and will also slow down some simulations.
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Bf-blender-cvs
mailing list