summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-16 23:48:00 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-16 23:50:36 +0200
commite8ea9c21790660256942c66a74bf992287f8bb7b (patch)
treef273b881a6b805cedd0f7feb56c56b561367be52
parentce207e050e38352541531e2f09d62c2f54680063 (diff)
downloadffmpeg-streaming-e8ea9c21790660256942c66a74bf992287f8bb7b.zip
ffmpeg-streaming-e8ea9c21790660256942c66a74bf992287f8bb7b.tar.gz
drawtext: reindent after the previous commit
-rw-r--r--libavfilter/vf_drawtext.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 3013cc7..4f25140 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -571,29 +571,29 @@ static int draw_text(AVFilterContext *ctx, AVFilterBufferRef *picref,
Glyph dummy = { 0 };
#if HAVE_LOCALTIME_R
- time_t now = time(0);
- struct tm ltime;
- uint8_t *buf = dtext->expanded_text;
- int buf_size = dtext->expanded_text_size;
-
- if (!buf) {
- buf_size = 2*strlen(dtext->text)+1;
- buf = av_malloc(buf_size);
- }
+ time_t now = time(0);
+ struct tm ltime;
+ uint8_t *buf = dtext->expanded_text;
+ int buf_size = dtext->expanded_text_size;
+
+ if (!buf) {
+ buf_size = 2*strlen(dtext->text)+1;
+ buf = av_malloc(buf_size);
+ }
- localtime_r(&now, &ltime);
+ localtime_r(&now, &ltime);
- do {
- *buf = 1;
- if (strftime(buf, buf_size, dtext->text, &ltime) != 0 || *buf == 0)
- break;
- buf_size *= 2;
- } while ((buf = av_realloc(buf, buf_size)));
+ do {
+ *buf = 1;
+ if (strftime(buf, buf_size, dtext->text, &ltime) != 0 || *buf == 0)
+ break;
+ buf_size *= 2;
+ } while ((buf = av_realloc(buf, buf_size)));
- if (!buf)
- return AVERROR(ENOMEM);
- text = dtext->expanded_text = buf;
- dtext->expanded_text_size = buf_size;
+ if (!buf)
+ return AVERROR(ENOMEM);
+ text = dtext->expanded_text = buf;
+ dtext->expanded_text_size = buf_size;
#endif
if ((len = strlen(text)) > dtext->nb_positions) {
if (!(dtext->positions =
OpenPOWER on IntegriCloud