summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/opt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/opt.c b/libavcodec/opt.c
index c11dcd3ec9..123530c3f1 100644
--- a/libavcodec/opt.c
+++ b/libavcodec/opt.c
@@ -69,6 +69,7 @@ static const AVOption *av_set_number(void *obj, const char *name, double num, in
case FF_OPT_TYPE_RATIONAL:
if((int)num == num) *(AVRational*)dst= (AVRational){num*intnum, den};
else *(AVRational*)dst= av_d2q(num*intnum/den, 1<<24);
+ break;
default:
return NULL;
}