Send both frame rate and refresh rate in description

This commit is contained in:
Patrick Nicolas committed 2026-04-27 10:26:58 +02:00
1 parent 775022d065
commit e21b1adf1d
6 files changed
+15 -12

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ decoder::decoder(
// latency mode
AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_WIDTH, width);
AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_HEIGHT, height);
AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_OPERATING_RATE, std::ceil(description.fps));
AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_OPERATING_RATE, std::ceil(description.frame_rate));
AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_PRIORITY, 0);
media_codec.reset(AMediaCodec_createDecoderByType(mime(description.codec[stream_index])));