[FFmpeg-devel] [PATCH] libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOption

Przemysław Sobala przemyslaw.sobala at grupawp.pl
Mon May 9 11:27:09 CEST 2016


---
 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
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list