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

pull/172/head
Clément Bœsch 9 years ago
parent b7e64be8fb
commit 5ae07914d0
  1. 5
      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");

Loading…
Cancel
Save