[pitivi] factories/file.py: don't use ffvideoscale when still image has alpha ffvideoscale can handle rgba bu



commit b31b318bc1808662da16363b205bb6f4b990bf8b
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Fri Jan 8 12:57:28 2010 -0800

    factories/file.py: don't use ffvideoscale when still image has alpha
    ffvideoscale can handle rgba but not ayuv

 pitivi/factories/file.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/factories/file.py b/pitivi/factories/file.py
index 80d9cb5..1fe32ad 100644
--- a/pitivi/factories/file.py
+++ b/pitivi/factories/file.py
@@ -75,7 +75,7 @@ class PictureFileSourceFactory(FileSourceFactory):
         res = gst.Bin("picture-%s" % self.name)
 
         # use ffvideoscale only if available AND width < 2048
-        if output_stream.width < 2048:
+        if (output_stream.width < 2048) and (not output_stream.has_alpha()):
             try:
                 scale = gst.element_factory_make(self.ffscale_factory, "scale")
                 scale.props.method = 9



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]