lavc/ccaption_dec: check for bprint completeness only at the end
authorClément Bœsch <u@pkh.me>
Sat, 9 Jan 2016 11:37:11 +0000 (12:37 +0100)
committerClément Bœsch <u@pkh.me>
Sat, 9 Jan 2016 11:37:11 +0000 (12:37 +0100)
libavcodec/ccaption_dec.c

index 971561a..b81c957 100644 (file)
@@ -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");