mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/ccaption_dec: switch active screen in end of caption early
Fixes dropping of last caption.
This commit is contained in:
parent
847d0b99de
commit
0c2623d3aa
@ -603,12 +603,13 @@ static int handle_eoc(CCaptionSubContext *ctx, int64_t pts)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ctx->active_screen = !ctx->active_screen;
|
||||
|
||||
// In buffered mode, we wait til the *next* EOC and
|
||||
// reap what was already on the screen since the last EOC.
|
||||
if (!ctx->real_time)
|
||||
ret = handle_edm(ctx,pts);
|
||||
|
||||
ctx->active_screen = !ctx->active_screen;
|
||||
ctx->cursor_column = 0;
|
||||
|
||||
// In realtime mode, we display the buffered contents (after
|
||||
|
Loading…
x
Reference in New Issue
Block a user