aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorRoine Gustafsson <roine@users.sourceforge.net>2005-01-27 16:11:31 +0000
committerFrançois Revol <revol@free.fr>2005-01-27 16:11:31 +0000
commit888053179ca31464310acbcf521e332c682086dd (patch)
tree010b779aa35e9c87d75869cc9475de2578c35731 /libavformat/utils.c
parent501866a1fab9ee38b5360ae0e0dc0d04cbff1bf6 (diff)
downloadffmpeg-888053179ca31464310acbcf521e332c682086dd.tar.gz
support colon-separated rates patch by Roine Gustafsson <roine AT users DOT sourceforge DOT net>
Originally committed as revision 3892 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index bfc4ed366e..92f412105c 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2487,6 +2487,8 @@ int parse_frame_rate(int *frame_rate, int *frame_rate_base, const char *arg)
/* Then, we try to parse it as fraction */
cp = strchr(arg, '/');
+ if (!cp)
+ cp = strchr(arg, ':');
if (cp) {
char* cpp;
*frame_rate = strtol(arg, &cpp, 10);