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
6f499ae3
Commit
6f499ae3
authored
Aug 08, 2019
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mpegtsenc: rename pcr_period variable to pcr_period_ms
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
ae3d6a33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mpegtsenc.c
libavformat/mpegtsenc.c
+3
-3
No files found.
libavformat/mpegtsenc.c
View file @
6f499ae3
...
...
@@ -97,7 +97,7 @@ typedef struct MpegTSWrite {
int
start_pid
;
int
m2ts_mode
;
int
pcr_period
;
int
pcr_period
_ms
;
#define MPEGTS_FLAG_REEMIT_PAT_PMT 0x01
#define MPEGTS_FLAG_AAC_LATM 0x02
#define MPEGTS_FLAG_PAT_PMT_AT_FRAMES 0x04
...
...
@@ -791,7 +791,7 @@ static void enable_pcr_generation_for_stream(AVFormatContext *s, AVStream *pcr_s
MpegTSWriteStream
*
ts_st
=
pcr_st
->
priv_data
;
if
(
ts
->
mux_rate
>
1
)
{
ts_st
->
pcr_period
=
av_rescale
(
ts
->
pcr_period
,
PCR_TIME_BASE
,
1000
);
ts_st
->
pcr_period
=
av_rescale
(
ts
->
pcr_period
_ms
,
PCR_TIME_BASE
,
1000
);
}
else
{
/* For VBR we select the highest multiple of frame duration which is less than 100 ms. */
int64_t
frame_period
=
0
;
...
...
@@ -1963,7 +1963,7 @@ static const AVOption options[] = {
offsetof
(
MpegTSWrite
,
omit_video_pes_length
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
1
},
0
,
1
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
"pcr_period"
,
"PCR retransmission time in milliseconds"
,
offsetof
(
MpegTSWrite
,
pcr_period
),
AV_OPT_TYPE_INT
,
offsetof
(
MpegTSWrite
,
pcr_period
_ms
),
AV_OPT_TYPE_INT
,
{
.
i64
=
PCR_RETRANS_TIME
},
0
,
INT_MAX
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
"pat_period"
,
"PAT/PMT retransmission time limit in seconds"
,
offsetof
(
MpegTSWrite
,
pat_period
),
AV_OPT_TYPE_DOUBLE
,
...
...
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