mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 18:40:03 +01:00
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
This commit is contained in:
committed by
François Revol
parent
501866a1fa
commit
888053179c
@@ -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 */
|
/* Then, we try to parse it as fraction */
|
||||||
cp = strchr(arg, '/');
|
cp = strchr(arg, '/');
|
||||||
|
if (!cp)
|
||||||
|
cp = strchr(arg, ':');
|
||||||
if (cp) {
|
if (cp) {
|
||||||
char* cpp;
|
char* cpp;
|
||||||
*frame_rate = strtol(arg, &cpp, 10);
|
*frame_rate = strtol(arg, &cpp, 10);
|
||||||
|
|||||||
Reference in New Issue
Block a user