[FFmpeg-devel] [PATCH] avcodec/ccaption_dec: Make real-time latency configurable

Moritz Barsnick barsnick at gmx.net
Wed May 26 09:12:45 EEST 2021


On Tue, May 25, 2021 at 20:16:29 -0600, Pavel Koshevoy wrote:
> -        sub->pts > ctx->last_real_time + av_rescale_q(200, ms_tb, AV_TIME_BASE_Q)) {
> +        sub->pts >= ctx->last_real_time + av_rescale_q(ctx->real_time_latency_msec, ms_tb, AV_TIME_BASE_Q)) {
[...]
> +    { "real_time_latency_msec", "minimum elapsed time between emitting real-time subtitle events", OFFSET(real_time_latency_msec), AV_OPT_TYPE_INT, { .i64 = 201 }, 0, 500, SD, "data_field" },

So why now 201 instead of 200 ms?

Moritz


More information about the ffmpeg-devel mailing list