Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
53a715f5
Commit
53a715f5
authored
May 16, 2011
by
Stefano Sabatini
Committed by
Anton Khirnov
Jun 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drawtext: reindent after the previous commit
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
3fd53def
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
vf_drawtext.c
libavfilter/vf_drawtext.c
+20
-20
No files found.
libavfilter/vf_drawtext.c
View file @
53a715f5
...
...
@@ -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
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment