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
9189411b
Commit
9189411b
authored
Feb 10, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coding style changes
Originally committed as revision 11901 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
93faa9fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
formats.c
libavfilter/formats.c
+6
-5
No files found.
libavfilter/formats.c
View file @
9189411b
...
...
@@ -51,8 +51,9 @@ AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b)
if
(
a
->
formats
[
i
]
==
b
->
formats
[
j
])
ret
->
formats
[
k
++
]
=
a
->
formats
[
i
];
ret
->
format_count
=
k
;
/* check that there was at least one common format */
if
(
!
(
ret
->
format_count
=
k
)
)
{
if
(
!
ret
->
format_count
)
{
av_free
(
ret
->
formats
);
av_free
(
ret
);
return
NULL
;
...
...
@@ -117,9 +118,9 @@ static int find_ref_index(AVFilterFormats **ref)
void
avfilter_formats_unref
(
AVFilterFormats
**
ref
)
{
int
idx
;
int
idx
=
find_ref_index
(
ref
)
;
if
(
(
idx
=
find_ref_index
(
ref
))
>=
0
)
if
(
idx
>=
0
)
memmove
((
*
ref
)
->
refs
+
idx
,
(
*
ref
)
->
refs
+
idx
+
1
,
sizeof
(
AVFilterFormats
**
)
*
((
*
ref
)
->
refcount
-
idx
-
1
));
...
...
@@ -134,9 +135,9 @@ void avfilter_formats_unref(AVFilterFormats **ref)
void
avfilter_formats_changeref
(
AVFilterFormats
**
oldref
,
AVFilterFormats
**
newref
)
{
int
idx
;
int
idx
=
find_ref_index
(
oldref
)
;
if
(
(
idx
=
find_ref_index
(
oldref
))
>=
0
)
{
if
(
idx
>=
0
)
{
(
*
oldref
)
->
refs
[
idx
]
=
newref
;
*
newref
=
*
oldref
;
*
oldref
=
NULL
;
...
...
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