1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOption

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Przemysław Sobala
2016-05-09 11:27:09 +02:00
committed by Michael Niedermayer
parent 5fce4753ff
commit 1a3cff4f7e

View File

@@ -136,6 +136,7 @@ static int write_number(void *obj, const AVOption *o, void *dst, double num, int
*(double *)dst = num * intnum / den; *(double *)dst = num * intnum / den;
break; break;
case AV_OPT_TYPE_RATIONAL: case AV_OPT_TYPE_RATIONAL:
case AV_OPT_TYPE_VIDEO_RATE:
if ((int) num == num) if ((int) num == num)
*(AVRational *)dst = (AVRational) { num *intnum, den }; *(AVRational *)dst = (AVRational) { num *intnum, den };
else else