diff common.h @ 701:85b071dfc7e3 libavcodec

ff_get_fourcc() & XVIX support
author michaelni
date Fri, 27 Sep 2002 10:27:57 +0000
parents 153a7ffd289b
children e65798d228ea
line wrap: on
line diff
--- a/common.h	Thu Sep 26 23:27:22 2002 +0000
+++ b/common.h	Fri Sep 27 10:27:57 2002 +0000
@@ -922,6 +922,16 @@
     }
     return ret;
 }
+
+/**
+ * converts fourcc string to int
+ */
+static inline int ff_get_fourcc(char *s){
+    assert( strlen(s)==4 );
+    
+    return (s[0]) + (s[1]<<8) + (s[2]<<16) + (s[3]<<24);
+}
+
 #if __CPU__ >= 686 && !defined(RUNTIME_CPUDETECT)
 #define COPY3_IF_LT(x,y,a,b,c,d)\
 asm volatile (\