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
0d26264f
Commit
0d26264f
authored
May 27, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_drawtext: Avoid using non public AV_PIX_FMT_NB
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ee0c91cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
drawutils.c
libavfilter/drawutils.c
+6
-7
No files found.
libavfilter/drawutils.c
View file @
0d26264f
...
...
@@ -517,15 +517,14 @@ int ff_draw_round_to_sub(FFDrawContext *draw, int sub_dir, int round_dir,
AVFilterFormats
*
ff_draw_supported_pixel_formats
(
unsigned
flags
)
{
enum
AVPixelFormat
i
,
pix_fmts
[
AV_PIX_FMT_NB
+
1
];
unsigned
n
=
0
;
enum
AVPixelFormat
i
;
FFDrawContext
draw
;
AVFilterFormats
*
fmts
=
NULL
;
for
(
i
=
0
;
i
<
AV_PIX_FMT_NB
;
i
++
)
for
(
i
=
0
;
av_pix_fmt_desc_get
(
i
)
;
i
++
)
if
(
ff_draw_init
(
&
draw
,
i
,
flags
)
>=
0
)
pix_fmts
[
n
++
]
=
i
;
pix_fmts
[
n
++
]
=
AV_PIX_FMT_NONE
;
return
ff_make_format_list
(
pix_fmts
);
ff_add_format
(
&
fmts
,
i
);
return
fmts
;
}
#ifdef TEST
...
...
@@ -540,7 +539,7 @@ int main(void)
FFDrawColor
color
;
int
r
,
i
;
for
(
f
=
0
;
f
<
AV_PIX_FMT_NB
;
f
++
)
{
for
(
f
=
0
;
av_pix_fmt_desc_get
(
f
)
;
f
++
)
{
desc
=
av_pix_fmt_desc_get
(
f
);
if
(
!
desc
->
name
)
continue
;
...
...
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