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
7db022e6
Commit
7db022e6
authored
May 09, 2018
by
Aman Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mpegts: reindent after last change
Signed-off-by:
Aman Gupta
<
aman@tmm1.net
>
parent
9152c1e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
35 deletions
+35
-35
mpegts.c
libavformat/mpegts.c
+35
-35
No files found.
libavformat/mpegts.c
View file @
7db022e6
...
...
@@ -412,44 +412,44 @@ static void write_section_data(MpegTSContext *ts, MpegTSFilter *tss1,
offset
=
0
;
cur_section_buf
=
tss
->
section_buf
;
while
(
cur_section_buf
-
tss
->
section_buf
<
MAX_SECTION_SIZE
&&
cur_section_buf
[
0
]
!=
0xff
)
{
/* compute section length if possible */
if
(
tss
->
section_h_size
==
-
1
&&
tss
->
section_index
-
offset
>=
3
)
{
len
=
(
AV_RB16
(
cur_section_buf
+
1
)
&
0xfff
)
+
3
;
if
(
len
>
MAX_SECTION_SIZE
)
return
;
tss
->
section_h_size
=
len
;
}
if
(
tss
->
section_h_size
!=
-
1
&&
tss
->
section_index
>=
offset
+
tss
->
section_h_size
)
{
int
crc_valid
=
1
;
tss
->
end_of_section_reached
=
1
;
if
(
tss
->
check_crc
)
{
crc_valid
=
!
av_crc
(
av_crc_get_table
(
AV_CRC_32_IEEE
),
-
1
,
cur_section_buf
,
tss
->
section_h_size
);
if
(
tss
->
section_h_size
>=
4
)
tss
->
crc
=
AV_RB32
(
cur_section_buf
+
tss
->
section_h_size
-
4
);
/* compute section length if possible */
if
(
tss
->
section_h_size
==
-
1
&&
tss
->
section_index
-
offset
>=
3
)
{
len
=
(
AV_RB16
(
cur_section_buf
+
1
)
&
0xfff
)
+
3
;
if
(
len
>
MAX_SECTION_SIZE
)
return
;
tss
->
section_h_size
=
len
;
}
if
(
tss
->
section_h_size
!=
-
1
&&
tss
->
section_index
>=
offset
+
tss
->
section_h_size
)
{
int
crc_valid
=
1
;
tss
->
end_of_section_reached
=
1
;
if
(
tss
->
check_crc
)
{
crc_valid
=
!
av_crc
(
av_crc_get_table
(
AV_CRC_32_IEEE
),
-
1
,
cur_section_buf
,
tss
->
section_h_size
);
if
(
tss
->
section_h_size
>=
4
)
tss
->
crc
=
AV_RB32
(
cur_section_buf
+
tss
->
section_h_size
-
4
);
if
(
crc_valid
)
{
ts
->
crc_validity
[
tss1
->
pid
]
=
100
;
}
else
if
(
ts
->
crc_validity
[
tss1
->
pid
]
>
-
10
)
{
ts
->
crc_validity
[
tss1
->
pid
]
--
;
}
else
crc_valid
=
2
;
}
if
(
crc_valid
)
{
ts
->
crc_validity
[
tss1
->
pid
]
=
100
;
}
else
if
(
ts
->
crc_validity
[
tss1
->
pid
]
>
-
10
)
{
ts
->
crc_validity
[
tss1
->
pid
]
--
;
}
else
crc_valid
=
2
;
}
if
(
crc_valid
)
{
tss
->
section_cb
(
tss1
,
cur_section_buf
,
tss
->
section_h_size
);
if
(
crc_valid
!=
1
)
tss
->
last_ver
=
-
1
;
}
tss
->
section_cb
(
tss1
,
cur_section_buf
,
tss
->
section_h_size
);
if
(
crc_valid
!=
1
)
tss
->
last_ver
=
-
1
;
}
cur_section_buf
+=
tss
->
section_h_size
;
offset
+=
tss
->
section_h_size
;
tss
->
section_h_size
=
-
1
;
}
else
{
tss
->
end_of_section_reached
=
0
;
break
;
}
cur_section_buf
+=
tss
->
section_h_size
;
offset
+=
tss
->
section_h_size
;
tss
->
section_h_size
=
-
1
;
}
else
{
tss
->
end_of_section_reached
=
0
;
break
;
}
}
}
...
...
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