mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
lavc/ccaption_dec: check for bprint completeness only at the end
This commit is contained in:
parent
b7e64be8fb
commit
5ae07914d0
@ -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…
Reference in New Issue
Block a user