From 5ae07914d047dd406b4953cfb7a1e091f7188381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sat, 9 Jan 2016 12:37:11 +0100 Subject: [PATCH] lavc/ccaption_dec: check for bprint completeness only at the end --- libavcodec/ccaption_dec.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index 971561a701..b81c957145 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -331,11 +331,6 @@ static int capture_screen(CCaptionSubContext *ctx) prev_font = font[j]; av_bprintf(&ctx->buffer, "%s%s%c", e_tag, s_tag, row[j]); - ret = av_bprint_is_complete(&ctx->buffer); - if (ret == 0) { - ret = AVERROR(ENOMEM); - break; - } } av_bprintf(&ctx->buffer, "\\N");