summaryrefslogtreecommitdiff
path: root/libavcodec/ccaption_dec.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2016-01-09 12:37:11 +0100
committerClément Bœsch <u@pkh.me>2016-01-09 12:37:11 +0100
commit5ae07914d047dd406b4953cfb7a1e091f7188381 (patch)
tree264fff103553ba8686fb1da9c4e1484f85acdb0f /libavcodec/ccaption_dec.c
parentb7e64be8fbf48c6ded06130146209040c0b32919 (diff)
lavc/ccaption_dec: check for bprint completeness only at the end
Diffstat (limited to 'libavcodec/ccaption_dec.c')
-rw-r--r--libavcodec/ccaption_dec.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index 971561a701..b81c957145 100644
--- a/libavcodec/ccaption_dec.c
+++ b/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");