[xiph-commits] r14296 - trunk/ffmpeg2theora

j at svn.xiph.org j at svn.xiph.org
Wed Dec 12 02:39:11 PST 2007


Author: j
Date: 2007-12-12 02:39:10 -0800 (Wed, 12 Dec 2007)
New Revision: 14296

Modified:
   trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
add / as possible delimiter for framerate and aspect ratio

Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c	2007-12-12 00:49:58 UTC (rev 14295)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c	2007-12-12 10:39:10 UTC (rev 14296)
@@ -892,6 +892,9 @@
     const char *p;
 
     p = strchr(arg, ':');
+    if (!p) {
+      p = strchr(arg, '/');
+    }
     if (p) {
         x = strtol(arg, (char **)&arg, 10);
         if (arg == p)
@@ -932,6 +935,9 @@
     AVRational framerate;
     
     p = strchr(arg, ':');
+    if (!p) {
+      p = strchr(arg, '/');
+    }
     if (p) {
         framerate.num = strtol(arg, (char **)&arg, 10);
         if (arg == p)



More information about the commits mailing list