From 1a3cff4f7eadad5292b6d65f751b0273d3a4124a Mon Sep 17 00:00:00 2001 From: Przemysław Sobala Date: Mon, 9 May 2016 11:27:09 +0200 Subject: libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOption Signed-off-by: Michael Niedermayer --- libavutil/opt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavutil') diff --git a/libavutil/opt.c b/libavutil/opt.c index 70a68d92e3..e63bd8a5ce 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -136,6 +136,7 @@ static int write_number(void *obj, const AVOption *o, void *dst, double num, int *(double *)dst = num * intnum / den; break; case AV_OPT_TYPE_RATIONAL: + case AV_OPT_TYPE_VIDEO_RATE: if ((int) num == num) *(AVRational *)dst = (AVRational) { num *intnum, den }; else -- cgit v1.2.3