Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  ofz68840.patch   Sprache: unbekannt

 
--- a/libtiff/tif_tile.c
+++ b/libtiff/tif_tile.c
@@ -233,7 +233,13 @@
             _TIFFMultiply64(tif, samplingrow_size, samplingblocks_ver, module));
     }
     else
-        return (_TIFFMultiply64(tif, nrows, TIFFTileRowSize64(tif), module));
+    {
+        uint64_t row_size = TIFFTileRowSize64(tif);
+        /* I think the way this works the expectation is there are always even num of samples */
+        if (td->td_photometric == PHOTOMETRIC_YCBCR)
+            row_size = TIFFroundup_64(row_size, 2);
+        return (_TIFFMultiply64(tif, nrows, row_size, module));
+    }
 }
 tmsize_t TIFFVTileSize(TIFF *tif, uint32_t nrows)
 {

[ Dauer der Verarbeitung: 0.21 Sekunden  (vorverarbeitet)  ]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge