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=\""ilbmtoppm"
"%i" > "%o"\"/>"
" <delegate decode=\"man\" command=\""groff" -man -Tps
"%i" > "%o"\"/>"
" <delegate decode=\"mpeg:decode\" stealth=\"True\"
command=\""mpeg2decode" -q -b "%i" -f -r -o3
"%u%%d"\"/>"
- " <delegate decode=\"null\" encode=\"mpeg:encode\" stealth=\"True\"
command=\""mpeg2encode" "%i" "%o"\"/>"
+ " <delegate decode=\"null\" encode=\"mpeg:encode\" stealth=\"True\"
command=\""mpeg2encode" "%o" "%i"\"/>"
" <delegate decode=\"pcl:color\" stealth=\"True\"
command=\""pcl6" -dQUIET -dSAFER -dPARANOIDSAFE -dBATCH -dNOPAUSE
-dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0
"-sDEVICE=ppmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u
"-r%s" %s "-sOutputFile=%s" "%s"\"/>"
" <delegate decode=\"pcl:cmyk\" stealth=\"True\"
command=\""pcl6" -dQUIET -dSAFER -dPARANOIDSAFE -dBATCH -dNOPAUSE
-dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0
"-sDEVICE=bmpsep8" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u
"-r%s" %s "-sOutputFile=%s" "%s"\"/>"
" <delegate decode=\"pcl:mono\" stealth=\"True\"
command=\""pcl6" -dQUIET -dSAFER -dPARANOIDSAFE -dBATCH -dNOPAUSE
-dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0
"-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u
"-r%s" %s "-sOutputFile=%s" "%s"\"/>"
_______________________________________________
Magick-bugs mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-bugs