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
57f9bc90
Commit
57f9bc90
authored
Jun 17, 2019
by
Andreas Rheinhardt
Committed by
Mark Thompson
Jul 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter_units: Reindent after previous commit
Signed-off-by:
Andreas Rheinhardt
<
andreas.rheinhardt@gmail.com
>
parent
83be17cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
filter_units_bsf.c
libavcodec/filter_units_bsf.c
+23
-23
No files found.
libavcodec/filter_units_bsf.c
View file @
57f9bc90
...
...
@@ -105,33 +105,33 @@ static int filter_units_filter(AVBSFContext *bsf, AVPacket *out)
AVPacket
*
in
=
NULL
;
int
err
,
i
,
j
;
err
=
ff_bsf_get_packet
(
bsf
,
&
in
);
if
(
err
<
0
)
return
err
;
err
=
ff_bsf_get_packet
(
bsf
,
&
in
);
if
(
err
<
0
)
return
err
;
if
(
ctx
->
mode
==
NOOP
)
{
av_packet_move_ref
(
out
,
in
);
av_packet_free
(
&
in
);
return
0
;
}
if
(
ctx
->
mode
==
NOOP
)
{
av_packet_move_ref
(
out
,
in
);
av_packet_free
(
&
in
);
return
0
;
}
err
=
ff_cbs_read_packet
(
ctx
->
cbc
,
frag
,
in
);
if
(
err
<
0
)
{
av_log
(
bsf
,
AV_LOG_ERROR
,
"Failed to read packet.
\n
"
);
goto
fail
;
}
err
=
ff_cbs_read_packet
(
ctx
->
cbc
,
frag
,
in
);
if
(
err
<
0
)
{
av_log
(
bsf
,
AV_LOG_ERROR
,
"Failed to read packet.
\n
"
);
goto
fail
;
}
for
(
i
=
0
;
i
<
frag
->
nb_units
;
i
++
)
{
for
(
j
=
0
;
j
<
ctx
->
nb_types
;
j
++
)
{
if
(
frag
->
units
[
i
].
type
==
ctx
->
type_list
[
j
])
break
;
}
if
(
ctx
->
mode
==
REMOVE
?
j
<
ctx
->
nb_types
:
j
>=
ctx
->
nb_types
)
{
ff_cbs_delete_unit
(
ctx
->
cbc
,
frag
,
i
);
--
i
;
}
for
(
i
=
0
;
i
<
frag
->
nb_units
;
i
++
)
{
for
(
j
=
0
;
j
<
ctx
->
nb_types
;
j
++
)
{
if
(
frag
->
units
[
i
].
type
==
ctx
->
type_list
[
j
])
break
;
}
if
(
ctx
->
mode
==
REMOVE
?
j
<
ctx
->
nb_types
:
j
>=
ctx
->
nb_types
)
{
ff_cbs_delete_unit
(
ctx
->
cbc
,
frag
,
i
);
--
i
;
}
}
if
(
frag
->
nb_units
==
0
)
{
// Don't return packets with nothing in them.
...
...
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