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
bf5b5d2b
Commit
bf5b5d2b
authored
Apr 01, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter.c: cosmetics, reformat
parent
d79bd604
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
avfilter.c
libavfilter/avfilter.c
+13
-11
No files found.
libavfilter/avfilter.c
View file @
bf5b5d2b
...
@@ -34,7 +34,8 @@
...
@@ -34,7 +34,8 @@
#include "internal.h"
#include "internal.h"
#include "video.h"
#include "video.h"
unsigned
avfilter_version
(
void
)
{
unsigned
avfilter_version
(
void
)
{
return
LIBAVFILTER_VERSION_INT
;
return
LIBAVFILTER_VERSION_INT
;
}
}
...
@@ -59,13 +60,13 @@ void ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off,
...
@@ -59,13 +60,13 @@ void ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off,
*
pads
=
av_realloc
(
*
pads
,
sizeof
(
AVFilterPad
)
*
(
*
count
+
1
));
*
pads
=
av_realloc
(
*
pads
,
sizeof
(
AVFilterPad
)
*
(
*
count
+
1
));
*
links
=
av_realloc
(
*
links
,
sizeof
(
AVFilterLink
*
)
*
(
*
count
+
1
));
*
links
=
av_realloc
(
*
links
,
sizeof
(
AVFilterLink
*
)
*
(
*
count
+
1
));
memmove
(
*
pads
+
idx
+
1
,
*
pads
+
idx
,
sizeof
(
AVFilterPad
)
*
(
*
count
-
idx
));
memmove
(
*
pads
+
idx
+
1
,
*
pads
+
idx
,
sizeof
(
AVFilterPad
)
*
(
*
count
-
idx
));
memmove
(
*
links
+
idx
+
1
,
*
links
+
idx
,
sizeof
(
AVFilterLink
*
)
*
(
*
count
-
idx
));
memmove
(
*
links
+
idx
+
1
,
*
links
+
idx
,
sizeof
(
AVFilterLink
*
)
*
(
*
count
-
idx
));
memcpy
(
*
pads
+
idx
,
newpad
,
sizeof
(
AVFilterPad
));
memcpy
(
*
pads
+
idx
,
newpad
,
sizeof
(
AVFilterPad
));
(
*
links
)[
idx
]
=
NULL
;
(
*
links
)[
idx
]
=
NULL
;
(
*
count
)
++
;
(
*
count
)
++
;
for
(
i
=
idx
+
1
;
i
<
*
count
;
i
++
)
for
(
i
=
idx
+
1
;
i
<
*
count
;
i
++
)
if
(
*
links
[
i
])
if
(
*
links
[
i
])
(
*
(
unsigned
*
)((
uint8_t
*
)
*
links
[
i
]
+
padidx_off
))
++
;
(
*
(
unsigned
*
)((
uint8_t
*
)
*
links
[
i
]
+
padidx_off
))
++
;
}
}
...
@@ -118,18 +119,18 @@ int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
...
@@ -118,18 +119,18 @@ int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
}
}
/* re-hookup the link to the new destination filter we inserted */
/* re-hookup the link to the new destination filter we inserted */
link
->
dst
=
filt
;
link
->
dst
=
filt
;
link
->
dstpad
=
&
filt
->
input_pads
[
filt_srcpad_idx
];
link
->
dstpad
=
&
filt
->
input_pads
[
filt_srcpad_idx
];
filt
->
inputs
[
filt_srcpad_idx
]
=
link
;
filt
->
inputs
[
filt_srcpad_idx
]
=
link
;
/* if any information on supported media formats already exists on the
/* if any information on supported media formats already exists on the
* link, we need to preserve that */
* link, we need to preserve that */
if
(
link
->
out_formats
)
if
(
link
->
out_formats
)
ff_formats_changeref
(
&
link
->
out_formats
,
ff_formats_changeref
(
&
link
->
out_formats
,
&
filt
->
outputs
[
filt_dstpad_idx
]
->
out_formats
);
&
filt
->
outputs
[
filt_dstpad_idx
]
->
out_formats
);
if
(
link
->
out_samplerates
)
if
(
link
->
out_samplerates
)
ff_formats_changeref
(
&
link
->
out_samplerates
,
ff_formats_changeref
(
&
link
->
out_samplerates
,
&
filt
->
outputs
[
filt_dstpad_idx
]
->
out_samplerates
);
&
filt
->
outputs
[
filt_dstpad_idx
]
->
out_samplerates
);
if
(
link
->
out_channel_layouts
)
if
(
link
->
out_channel_layouts
)
ff_channel_layouts_changeref
(
&
link
->
out_channel_layouts
,
ff_channel_layouts_changeref
(
&
link
->
out_channel_layouts
,
&
filt
->
outputs
[
filt_dstpad_idx
]
->
out_channel_layouts
);
&
filt
->
outputs
[
filt_dstpad_idx
]
->
out_channel_layouts
);
...
@@ -314,7 +315,8 @@ int avfilter_pad_count(const AVFilterPad *pads)
...
@@ -314,7 +315,8 @@ int avfilter_pad_count(const AVFilterPad *pads)
if
(
!
pads
)
if
(
!
pads
)
return
0
;
return
0
;
for
(
count
=
0
;
pads
->
name
;
count
++
)
pads
++
;
for
(
count
=
0
;
pads
->
name
;
count
++
)
pads
++
;
return
count
;
return
count
;
}
}
...
@@ -540,7 +542,7 @@ int avfilter_init_str(AVFilterContext *filter, const char *args)
...
@@ -540,7 +542,7 @@ int avfilter_init_str(AVFilterContext *filter, const char *args)
{
{
AVDictionary
*
options
=
NULL
;
AVDictionary
*
options
=
NULL
;
AVDictionaryEntry
*
e
;
AVDictionaryEntry
*
e
;
int
ret
=
0
;
int
ret
=
0
;
if
(
args
&&
*
args
)
{
if
(
args
&&
*
args
)
{
if
(
!
filter
->
filter
->
priv_class
)
{
if
(
!
filter
->
filter
->
priv_class
)
{
...
...
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