Commit 5ae07914 authored by Clément Bœsch's avatar Clément Bœsch

lavc/ccaption_dec: check for bprint completeness only at the end

parent b7e64be8
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment