[FFmpeg-cvslog] avfilter/avf_abitscope: Correct range for framerate

Gyan Doshi git at videolan.org
Thu Mar 30 21:32:11 EEST 2017


ffmpeg | branch: master | Gyan Doshi <gyandoshi at gmail.com> | Thu Mar 23 19:22:30 2017 +0530| [2104e3383fd1e9340c693451d9c7abb6501683ac] | committer: Lou Logan

avfilter/avf_abitscope: Correct range for framerate

Signed-off-by: Gyan Doshi <gyandoshi at gmail.com>
Signed-off-by: Paul B Mahol <onemda at gmail.com> (via IRC)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2104e3383fd1e9340c693451d9c7abb6501683ac
---

 libavfilter/avf_abitscope.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avf_abitscope.c b/libavfilter/avf_abitscope.c
index 4f5d4c7..0f3e359 100644
--- a/libavfilter/avf_abitscope.c
+++ b/libavfilter/avf_abitscope.c
@@ -46,8 +46,8 @@ typedef struct AudioBitScopeContext {
 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 
 static const AVOption abitscope_options[] = {
-    { "rate", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, 0, FLAGS },
-    { "r",    "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, 0, FLAGS },
+    { "rate", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, INT_MAX, FLAGS },
+    { "r",    "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, INT_MAX, FLAGS },
     { "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str="1024x256"}, 0, 0, FLAGS },
     { "s",    "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str="1024x256"}, 0, 0, FLAGS },
     { "colors", "set channels colors", OFFSET(colors), AV_OPT_TYPE_STRING, {.str = "red|green|blue|yellow|orange|lime|pink|magenta|brown" }, 0, 0, FLAGS },



More information about the ffmpeg-cvslog mailing list