Commit 1a3cff4f authored by Przemysław Sobala's avatar Przemysław Sobala Committed by Michael Niedermayer

libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOption

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 5fce4753
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment