Hi Everybody,

please find attached a patch for magick/delegate.c (based on 6.4.1-10)
fixing a problem with calling mpeg2encode with parameters (%o/%i) in
wrong order. This bug was apparently already fixed in
config/delegates.xml, however, I ran into it when working with a
statically linked IM, which does not use delegates.xml.

The error is reported by mpeg2encode with

    N must be positive

Best regards,
 Christian


-- 
http://www.lackas.net/
http://www.spect-ct.com/
http://www.inviCRO.com/
--- magick/delegate.c.orig      Mon Jun 23 13:08:38 2008
+++ magick/delegate.c   Mon Jun 23 13:08:43 2008
@@ -95,7 +95,7 @@
     "  <delegate decode=\"ilbm\" command=\"&quot;ilbmtoppm&quot; 
&quot;%i&quot; &gt; &quot;%o&quot;\"/>"
     "  <delegate decode=\"man\" command=\"&quot;groff&quot; -man -Tps 
&quot;%i&quot; &gt; &quot;%o&quot;\"/>"
     "  <delegate decode=\"mpeg:decode\" stealth=\"True\" 
command=\"&quot;mpeg2decode&quot; -q -b &quot;%i&quot; -f -r -o3 
&quot;%u%%d&quot;\"/>"
-    "  <delegate decode=\"null\" encode=\"mpeg:encode\" stealth=\"True\" 
command=\"&quot;mpeg2encode&quot; &quot;%i&quot; &quot;%o&quot;\"/>"
+    "  <delegate decode=\"null\" encode=\"mpeg:encode\" stealth=\"True\" 
command=\"&quot;mpeg2encode&quot; &quot;%o&quot; &quot;%i&quot;\"/>"
     "  <delegate decode=\"pcl:color\" stealth=\"True\" 
command=\"&quot;pcl6&quot; -dQUIET -dSAFER -dPARANOIDSAFE -dBATCH -dNOPAUSE 
-dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 
&quot;-sDEVICE=ppmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u 
&quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;\"/>"
     "  <delegate decode=\"pcl:cmyk\" stealth=\"True\" 
command=\"&quot;pcl6&quot; -dQUIET -dSAFER -dPARANOIDSAFE -dBATCH -dNOPAUSE 
-dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 
&quot;-sDEVICE=bmpsep8&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u 
&quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;\"/>"
     "  <delegate decode=\"pcl:mono\" stealth=\"True\" 
command=\"&quot;pcl6&quot; -dQUIET -dSAFER -dPARANOIDSAFE -dBATCH -dNOPAUSE 
-dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 
&quot;-sDEVICE=pbmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u 
&quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;\"/>"
_______________________________________________
Magick-bugs mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-bugs

Reply via email to