Browse Source

libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOption

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1
Przemysław Sobala Michael Niedermayer 9 years ago
parent
commit
1a3cff4f7e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavutil/opt.c

+ 1
- 0
libavutil/opt.c 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;
break;
case AV_OPT_TYPE_RATIONAL:
case AV_OPT_TYPE_VIDEO_RATE:
if ((int) num == num)
*(AVRational *)dst = (AVRational) { num *intnum, den };
else


Loading…
Cancel
Save