summaryrefslogtreecommitdiff
path: root/libavformat/tty.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-09 05:00:52 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-09 10:35:13 +0200
commit4888932c4d3ac68c26f44d7adf1e22e0d7ed8808 (patch)
tree9f3249d944d355252d0b63d89fc5351fbda35bdf /libavformat/tty.c
parentf2c8b666be4c09b66d7866269a6a8d7e1ebce01a (diff)
downloadffmpeg-4888932c4d3ac68c26f44d7adf1e22e0d7ed8808.tar.gz
avformat: Fix max value of AV_OPT_TYPE_VIDEO_RATE
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/tty.c')
-rw-r--r--libavformat/tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tty.c b/libavformat/tty.c
index ba7aebd17f..b407645ee4 100644
--- a/libavformat/tty.c
+++ b/libavformat/tty.c
@@ -138,7 +138,7 @@ static int read_packet(AVFormatContext *avctx, AVPacket *pkt)
static const AVOption options[] = {
{ "chars_per_frame", "", offsetof(TtyDemuxContext, chars_per_frame), AV_OPT_TYPE_INT, {.i64 = 6000}, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM},
{ "video_size", "A string describing frame size, such as 640x480 or hd720.", OFFSET(width), AV_OPT_TYPE_IMAGE_SIZE, {.str = NULL}, 0, 0, DEC },
- { "framerate", "", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, 0, DEC },
+ { "framerate", "", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, INT_MAX, DEC },
{ NULL },
};