[FFmpeg-devel] [PATCH 3/3] libavcodec/ccaption_dec: emit blank ASS events only in realtime mode
Aman Gupta
ffmpeg at tmm1.net
Wed Jan 6 20:35:12 CET 2016
From: Aman Gupta <aman at tmm1.net>
---
libavcodec/ccaption_dec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index 737c3f6..8e3008d 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -345,7 +345,9 @@ static int reap_screen(CCaptionSubContext *ctx)
ctx->buffer.str[ctx->buffer.len] = 0;
}
- ctx->screen_reaped = 1;
+ if (ctx->buffer.len || !ctx->calculate_duration)
+ ctx->screen_reaped = 1;
+
return ret;
}
--
2.5.3
More information about the ffmpeg-devel
mailing list