Browse code

avfilter/vf_fps: set fps value boundaries

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

Przemysław Sobala authored on 2016/05/09 18:17:23
Showing 1 changed files
... ...
@@ -62,7 +62,7 @@ typedef struct FPSContext {
62 62
 #define V AV_OPT_FLAG_VIDEO_PARAM
63 63
 #define F AV_OPT_FLAG_FILTERING_PARAM
64 64
 static const AVOption fps_options[] = {
65
-    { "fps", "A string describing desired output framerate", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, { .str = "25" }, .flags = V|F },
65
+    { "fps", "A string describing desired output framerate", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, { .str = "25" }, 0, INT_MAX, V|F },
66 66
     { "start_time", "Assume the first PTS should be this value.", OFFSET(start_time), AV_OPT_TYPE_DOUBLE, { .dbl = DBL_MAX}, -DBL_MAX, DBL_MAX, V },
67 67
     { "round", "set rounding method for timestamps", OFFSET(rounding), AV_OPT_TYPE_INT, { .i64 = AV_ROUND_NEAR_INF }, 0, 5, V|F, "round" },
68 68
     { "zero", "round towards 0",      OFFSET(rounding), AV_OPT_TYPE_CONST, { .i64 = AV_ROUND_ZERO     }, 0, 5, V|F, "round" },