[FFmpeg-cvslog] libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOption
Przemysław Sobala
git at videolan.org
Mon May 9 15:22:00 CEST 2016
ffmpeg | branch: master | Przemysław Sobala <przemyslaw.sobala at grupawp.pl> | Mon May 9 11:27:09 2016 +0200| [1a3cff4f7eadad5292b6d65f751b0273d3a4124a] | committer: Michael Niedermayer
libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOption
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a3cff4f7eadad5292b6d65f751b0273d3a4124a
---
libavutil/opt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 70a68d9..e63bd8a 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
More information about the ffmpeg-cvslog
mailing list