v4l_encoder: used encoder_info.fps instead of hardcoded 20 (#34701)

Used encoder_info.fps instead of hardcoded 20
pull/34703/head
Dean Lee 4 months ago committed by GitHub
parent 949fe31bad
commit 0619e9a581
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/loggerd/encoder/v4l_encoder.cc

@ -186,7 +186,7 @@ V4LEncoder::V4LEncoder(const EncoderInfo &encoder_info, int in_width, int in_hei
// TODO: more stuff here? we don't know
.timeperframe = {
.numerator = 1,
.denominator = 20
.denominator = (unsigned int)encoder_info.fps
}
}
}

Loading…
Cancel
Save