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
e3433702
Commit
e3433702
authored
Mar 10, 2010
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reindent
Originally committed as revision 22427 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cbfa66d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
mpegtsenc.c
libavformat/mpegtsenc.c
+8
-8
No files found.
libavformat/mpegtsenc.c
View file @
e3433702
...
@@ -450,14 +450,14 @@ static int mpegts_write_header(AVFormatContext *s)
...
@@ -450,14 +450,14 @@ static int mpegts_write_header(AVFormatContext *s)
ts
->
mux_rate
=
s
->
mux_rate
?
s
->
mux_rate
:
1
;
ts
->
mux_rate
=
s
->
mux_rate
?
s
->
mux_rate
:
1
;
if
(
ts
->
mux_rate
>
1
)
{
if
(
ts
->
mux_rate
>
1
)
{
service
->
pcr_packet_period
=
(
ts
->
mux_rate
*
PCR_RETRANS_TIME
)
/
service
->
pcr_packet_period
=
(
ts
->
mux_rate
*
PCR_RETRANS_TIME
)
/
(
TS_PACKET_SIZE
*
8
*
1000
);
(
TS_PACKET_SIZE
*
8
*
1000
);
ts
->
sdt_packet_period
=
(
ts
->
mux_rate
*
SDT_RETRANS_TIME
)
/
ts
->
sdt_packet_period
=
(
ts
->
mux_rate
*
SDT_RETRANS_TIME
)
/
(
TS_PACKET_SIZE
*
8
*
1000
);
(
TS_PACKET_SIZE
*
8
*
1000
);
ts
->
pat_packet_period
=
(
ts
->
mux_rate
*
PAT_RETRANS_TIME
)
/
ts
->
pat_packet_period
=
(
ts
->
mux_rate
*
PAT_RETRANS_TIME
)
/
(
TS_PACKET_SIZE
*
8
*
1000
);
(
TS_PACKET_SIZE
*
8
*
1000
);
ts
->
cur_pcr
=
av_rescale
(
s
->
max_delay
,
90000
,
AV_TIME_BASE
);
ts
->
cur_pcr
=
av_rescale
(
s
->
max_delay
,
90000
,
AV_TIME_BASE
);
}
else
{
}
else
{
/* Arbitrary values, PAT/PMT could be written on key frames */
/* Arbitrary values, PAT/PMT could be written on key frames */
ts
->
sdt_packet_period
=
200
;
ts
->
sdt_packet_period
=
200
;
...
...
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