Commit 06adda9a authored by François Grisez's avatar François Grisez
Browse files

Set the operating rate of the decoder to 30fps

parent dce16f9e
......@@ -141,6 +141,7 @@ void MediaCodecDecoder::createImpl(const std::string &mime) {
AMediaFormat_setInt32(format, "max-width", 1920);
AMediaFormat_setInt32(format, "max-height", 1920);
AMediaFormat_setInt32(format, "priority", 0);
AMediaFormat_setInt32(format, "operating-rate", 30); // 30fps
if ((status = AMediaCodec_configure(_impl, format, nullptr, nullptr, 0)) != AMEDIA_OK) {
errMsg << "configuration failure: " << int(status);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment