diff options
author | Robert Xu <robxu9@gmail.com> | 2012-07-28 17:22:06 -0400 |
---|---|---|
committer | Robert Xu <robxu9@gmail.com> | 2012-07-28 17:22:06 -0400 |
commit | 44279fd56aa28d4943b49e516ac791900c561488 (patch) | |
tree | 11289e75f32c5324c5f7469141881720af4f57fe /opensuse/core/tqt3/mng-reading-fix.patch | |
parent | 48e7f603b222a82ae22d94ecbd6cbba914144f86 (diff) | |
download | tde-packaging-44279fd56aa28d4943b49e516ac791900c561488.tar.gz tde-packaging-44279fd56aa28d4943b49e516ac791900c561488.zip |
initial package (failing) of tqt3 for SuSE12.1
Diffstat (limited to 'opensuse/core/tqt3/mng-reading-fix.patch')
-rw-r--r-- | opensuse/core/tqt3/mng-reading-fix.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/opensuse/core/tqt3/mng-reading-fix.patch b/opensuse/core/tqt3/mng-reading-fix.patch new file mode 100644 index 000000000..ccfd1c452 --- /dev/null +++ b/opensuse/core/tqt3/mng-reading-fix.patch @@ -0,0 +1,30 @@ +--- src/kernel/qmngio.cpp.sav 2007-02-23 14:01:19.000000000 +0100 ++++ src/kernel/qmngio.cpp 2007-08-28 15:27:28.000000000 +0200 +@@ -414,8 +414,11 @@ int QMNGFormat::decode( QImage& img, QIm + } + + losttime += losingtimer.elapsed(); +- if ( ndata || !length ) +- mng_display_resume(handle); ++ bool needmore = false; ++ if ( ndata ) { ++ mng_retcode r = mng_display_resume(handle); ++ needmore = ( r == MNG_NEEDMOREDATA ); ++ } + losingtimer.start(); + + image = 0; +@@ -425,6 +428,13 @@ int QMNGFormat::decode( QImage& img, QIm + // Move back unused tail + memcpy(buffer,buffer+ubuffer,nbuffer); + } ++ // "The function should return without processing all the data if it reaches the end of a frame in the input." ++ if( ndata && !needmore ) { ++ length -= ndata; ++ ndata = 0; ++ if( length == 0 ) // 0 means done, process at least one byte ++ length = ndata = 1; ++ } + if ( ndata ) { + // Not all used. + enlargeBuffer(nbuffer+ndata); |