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
cbec213a
Commit
cbec213a
authored
Mar 18, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_format: use the name 's' for the pointer to the private context
This is shorter and consistent across filters.
parent
d64cf54b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vf_format.c
libavfilter/vf_format.c
+5
-5
No files found.
libavfilter/vf_format.c
View file @
cbec213a
...
...
@@ -49,14 +49,14 @@ typedef struct {
static
av_cold
int
init
(
AVFilterContext
*
ctx
)
{
FormatContext
*
format
=
ctx
->
priv
;
FormatContext
*
s
=
ctx
->
priv
;
const
char
*
cur
,
*
sep
;
char
pix_fmt_name
[
AV_PIX_FMT_NAME_MAXSIZE
];
int
pix_fmt_name_len
;
enum
AVPixelFormat
pix_fmt
;
/* parse the list of formats */
for
(
cur
=
format
->
pix_fmts
;
cur
;
cur
=
sep
?
sep
+
1
:
NULL
)
{
for
(
cur
=
s
->
pix_fmts
;
cur
;
cur
=
sep
?
sep
+
1
:
NULL
)
{
if
(
!
(
sep
=
strchr
(
cur
,
'|'
)))
pix_fmt_name_len
=
strlen
(
cur
);
else
...
...
@@ -75,13 +75,13 @@ static av_cold int init(AVFilterContext *ctx)
return
-
1
;
}
format
->
listed_pix_fmt_flags
[
pix_fmt
]
=
1
;
s
->
listed_pix_fmt_flags
[
pix_fmt
]
=
1
;
}
return
0
;
}
static
AVFilterFormats
*
make_format_list
(
FormatContext
*
format
,
int
flag
)
static
AVFilterFormats
*
make_format_list
(
FormatContext
*
s
,
int
flag
)
{
AVFilterFormats
*
formats
;
enum
AVPixelFormat
pix_fmt
;
...
...
@@ -90,7 +90,7 @@ static AVFilterFormats *make_format_list(FormatContext *format, int flag)
formats
->
formats
=
av_malloc
(
sizeof
(
enum
AVPixelFormat
)
*
AV_PIX_FMT_NB
);
for
(
pix_fmt
=
0
;
pix_fmt
<
AV_PIX_FMT_NB
;
pix_fmt
++
)
if
(
format
->
listed_pix_fmt_flags
[
pix_fmt
]
==
flag
)
if
(
s
->
listed_pix_fmt_flags
[
pix_fmt
]
==
flag
)
formats
->
formats
[
formats
->
format_count
++
]
=
pix_fmt
;
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