diff --git a/drivers/mxc/vpu_malone/vpu_b0.c b/drivers/mxc/vpu_malone/vpu_b0.c index cca9b178eba18eca81d1da3a9b9fbe4f2eb55d7a..9ffd3c19b054bd4cd44a49a839bfbf4618540db0 100644 --- a/drivers/mxc/vpu_malone/vpu_b0.c +++ b/drivers/mxc/vpu_malone/vpu_b0.c @@ -1982,7 +1982,7 @@ static int vpu_dec_v4l2_ioctl_g_parm(struct file *file, void *fh, denominator = ctx->frame_interval.denominator; } if (!numerator || !denominator) { - numerator = 0; + numerator = 1; denominator = 0; } parm->parm.capture.timeperframe.numerator = numerator; @@ -2018,6 +2018,11 @@ static int vpu_dec_v4l2_ioctl_s_parm(struct file *file, void *fh, parm->parm.capture.timeperframe.denominator / gcd; mutex_unlock(&ctx->instance_mutex); + vpu_dbg(LVL_BIT_FLOW, "%s s_parm : %d / %d\n", + V4L2_TYPE_IS_OUTPUT(parm->type) ? "OUTPUT" : "CAPTURE", + parm->parm.capture.timeperframe.numerator, + parm->parm.capture.timeperframe.denominator); + return 0; }