diff dmengine.c @ 784:35b881454ea2

Move a function implementation.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 03 Aug 2013 23:48:12 +0300
parents 954b1b392c8b
children dbf5772690a8
line wrap: on
line diff
--- a/dmengine.c	Tue Jul 30 17:43:02 2013 +0300
+++ b/dmengine.c	Sat Aug 03 23:48:12 2013 +0300
@@ -391,3 +391,12 @@
 {
     return engineGetTime(engine, t) / 1000;
 }
+
+
+int engineGetVideoAspect(int width, int height)
+{
+    if (width > 0 && height > 0)
+        return (width * 1000) / height;
+    else
+        return 1;
+}