]> git.sesse.net Git - x264/blobdiff - muxers.h
Slightly faster predictor_difference_mmxext
[x264] / muxers.h
index 44ea9662263cd36bdcf0cad1efbc081b352a05d5..041dbbc3230463c2050bfa6f281b79dbab4d5d0f 100644 (file)
--- a/muxers.h
+++ b/muxers.h
@@ -41,6 +41,15 @@ static inline int64_t gcd( int64_t a, int64_t b )
     }
 }
 
+static inline char *get_filename_extension( char *filename )
+{
+    char *ext = filename + strlen( filename );
+    while( *ext != '.' && ext > filename )
+        ext--;
+    ext += *ext == '.';
+    return ext;
+}
+
 #include "input/input.h"
 #include "output/output.h"