[med-svn] [charls] 01/10: Add missing patch that was not commited to SVN

Andreas Tille tille at debian.org
Thu May 19 15:45:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository charls.

commit 05527a5412570705cf1633de6fcea82178a2234e
Author: Andreas Tille <tille at debian.org>
Date:   Thu May 19 16:53:02 2016 +0200

    Add missing patch that was not commited to SVN
---
 debian/patches/fix_EncoderStrategy.patch | 36 ++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/debian/patches/fix_EncoderStrategy.patch b/debian/patches/fix_EncoderStrategy.patch
new file mode 100644
index 0000000..9268274
--- /dev/null
+++ b/debian/patches/fix_EncoderStrategy.patch
@@ -0,0 +1,36 @@
+Description: [PATCH] Resolved #9. EncoderStrategy::AppendToBitStream can now
+ handle the condition that a second flush is needed to create enough room in
+ the 32-bit buffer.
+Author: Victor Derks <vbaderks at gmail.com>
+Bug-Debian: https://bugs.debian.org/816607
+Origin: upstream, https://github.com/team-charls/charls/commit/73d351f2df2ca267db35574ffb7a1398a6afb004
+Reviewed-By: Mathieu Malaterre <malat at debian.org>
+
+--- charls-1.0.orig/encoderstrategy.h
++++ charls-1.0/encoderstrategy.h
+@@ -75,9 +75,15 @@ protected:
+ 			return;
+ 		}
+ 		valcurrent |= value >> -bitpos;
+-
+ 		Flush();
+ 	        
++		// A second flush may be required if extra marker-detect bits were needed and not all bits could be written.
++		if (bitpos < 0)
++		{
++			valcurrent |= value >> -bitpos;
++			Flush();
++		}
++
+ 		ASSERT(bitpos >=0);
+ 		valcurrent |= value << bitpos;	
+ 
+@@ -106,7 +112,7 @@ protected:
+ 
+ 			if (_isFFWritten)
+ 			{
+-				// insert highmost bit
++				// JPEG-LS requirement (T.87, A.1) to detect markers: after a xFF value a single 0 bit needs to be inserted.
+ 				*_position = BYTE(valcurrent >> 25);
+ 				valcurrent = valcurrent << 7;			
+ 				bitpos += 7;	

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/charls.git



More information about the debian-med-commit mailing list