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
1dd35611
Commit
1dd35611
authored
Mar 31, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_format: do not use the AVFilterFormats internals.
Use the formats.h API instead.
parent
c5ab6088
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
vf_format.c
libavfilter/vf_format.c
+8
-6
No files found.
libavfilter/vf_format.c
View file @
1dd35611
...
@@ -83,15 +83,17 @@ static av_cold int init(AVFilterContext *ctx)
...
@@ -83,15 +83,17 @@ static av_cold int init(AVFilterContext *ctx)
static
AVFilterFormats
*
make_format_list
(
FormatContext
*
s
,
int
flag
)
static
AVFilterFormats
*
make_format_list
(
FormatContext
*
s
,
int
flag
)
{
{
AVFilterFormats
*
formats
;
AVFilterFormats
*
formats
=
NULL
;
enum
AVPixelFormat
pix_fmt
;
enum
AVPixelFormat
pix_fmt
;
formats
=
av_mallocz
(
sizeof
(
AVFilterFormats
));
formats
->
formats
=
av_malloc
(
sizeof
(
enum
AVPixelFormat
)
*
AV_PIX_FMT_NB
);
for
(
pix_fmt
=
0
;
pix_fmt
<
AV_PIX_FMT_NB
;
pix_fmt
++
)
for
(
pix_fmt
=
0
;
pix_fmt
<
AV_PIX_FMT_NB
;
pix_fmt
++
)
if
(
s
->
listed_pix_fmt_flags
[
pix_fmt
]
==
flag
)
if
(
s
->
listed_pix_fmt_flags
[
pix_fmt
]
==
flag
)
{
formats
->
formats
[
formats
->
nb_formats
++
]
=
pix_fmt
;
int
ret
=
ff_add_format
(
&
formats
,
pix_fmt
);
if
(
ret
<
0
)
{
ff_formats_unref
(
&
formats
);
return
NULL
;
}
}
return
formats
;
return
formats
;
}
}
...
...
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