diff options
author | Przemysław Sobala <przemyslaw.sobala@grupawp.pl> | 2016-05-09 11:27:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-09 15:01:31 +0200 |
commit | 1a3cff4f7eadad5292b6d65f751b0273d3a4124a (patch) | |
tree | 30d3fc5b5b8ede6b4c6d05a909be8963302dd2d1 /libavutil/opt.c | |
parent | 5fce4753ff0f9e4ebada3fa3619e0cf0b639385d (diff) | |
download | ffmpeg-1a3cff4f7eadad5292b6d65f751b0273d3a4124a.tar.gz |
libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOption
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |