[FFmpeg-cvslog] lavc/ccaption_dec: check for bprint completeness only at the end
Clément Bœsch
git at videolan.org
Sat Jan 9 12:37:47 CET 2016
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jan 9 12:37:11 2016 +0100| [5ae07914d047dd406b4953cfb7a1e091f7188381] | committer: Clément Bœsch
lavc/ccaption_dec: check for bprint completeness only at the end
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5ae07914d047dd406b4953cfb7a1e091f7188381
---
libavcodec/ccaption_dec.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index 971561a..b81c957 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");
More information about the ffmpeg-cvslog
mailing list