avcodec/ccaption_dec: Make real-time latency configurable
authorPavel Koshevoy <pkoshevoy@gmail.com>
Sat, 19 Jun 2021 01:20:03 +0000 (19:20 -0600)
committerPavel Koshevoy <pkoshevoy@gmail.com>
Sat, 19 Jun 2021 01:20:03 +0000 (19:20 -0600)
commitb51c2c48c1fbb4f1ae6f07a1b9c5561a99d39063
tree7a03daee010b465475c118f524e04ca59232c107
parent73b29807c7ca7470c0c79f9d275e2808b088d4fb
avcodec/ccaption_dec: Make real-time latency configurable

Un-hardcode the 200ms minimum latency between emitting subtitle events
so that those that wish to receive a subtitle event for every screen
change could do so.

The problem with delaying realtime output by any amount is that it is
unknown when the next byte pair that would trigger output will happen.
It may be within 200ms, or it may be several seconds later -- that's
not realtime at all.
libavcodec/ccaption_dec.c
libavcodec/version.h