From: Aman Gupta <a...@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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel