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

This commit is contained in:
Clément Bœsch 2016-01-09 12:37:11 +01:00
parent b7e64be8fb
commit 5ae07914d0
1 changed files with 0 additions and 5 deletions

View 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");