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