Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b7ed18b9
Commit
b7ed18b9
authored
Aug 02, 2013
by
Andrey Utkin
Committed by
Michael Niedermayer
Aug 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegtsenc: add option tables_version
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
5ad4e293
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
mpegtsenc.c
libavformat/mpegtsenc.c
+6
-3
version.h
libavformat/version.h
+1
-1
No files found.
libavformat/mpegtsenc.c
View file @
b7ed18b9
...
...
@@ -85,6 +85,7 @@ typedef struct MpegTSWrite {
#define MPEGTS_FLAG_AAC_LATM 0x02
int
flags
;
int
copyts
;
int
tables_version
;
}
MpegTSWrite
;
/* a PES packet header is generated every DEFAULT_PES_HEADER_FREQ packets */
...
...
@@ -121,6 +122,8 @@ static const AVOption options[] = {
offsetof
(
MpegTSWrite
,
reemit_pat_pmt
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
INT_MAX
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
"mpegts_copyts"
,
"don't offset dts/pts"
,
offsetof
(
MpegTSWrite
,
copyts
),
AV_OPT_TYPE_INT
,
{.
i64
=-
1
},
-
1
,
1
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
"tables_version"
,
"set PAT, PMT and SDT version"
,
offsetof
(
MpegTSWrite
,
tables_version
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
31
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
NULL
},
};
...
...
@@ -252,7 +255,7 @@ static void mpegts_write_pat(AVFormatContext *s)
put16
(
&
q
,
service
->
sid
);
put16
(
&
q
,
0xe000
|
service
->
pmt
.
pid
);
}
mpegts_write_section1
(
&
ts
->
pat
,
PAT_TID
,
ts
->
tsid
,
0
,
0
,
0
,
mpegts_write_section1
(
&
ts
->
pat
,
PAT_TID
,
ts
->
tsid
,
ts
->
tables_version
,
0
,
0
,
data
,
q
-
data
);
}
...
...
@@ -413,7 +416,7 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
desc_length_ptr
[
0
]
=
val
>>
8
;
desc_length_ptr
[
1
]
=
val
;
}
mpegts_write_section1
(
&
service
->
pmt
,
PMT_TID
,
service
->
sid
,
0
,
0
,
0
,
mpegts_write_section1
(
&
service
->
pmt
,
PMT_TID
,
service
->
sid
,
ts
->
tables_version
,
0
,
0
,
data
,
q
-
data
);
}
...
...
@@ -468,7 +471,7 @@ static void mpegts_write_sdt(AVFormatContext *s)
desc_list_len_ptr
[
0
]
=
val
>>
8
;
desc_list_len_ptr
[
1
]
=
val
;
}
mpegts_write_section1
(
&
ts
->
sdt
,
SDT_TID
,
ts
->
tsid
,
0
,
0
,
0
,
mpegts_write_section1
(
&
ts
->
sdt
,
SDT_TID
,
ts
->
tsid
,
ts
->
tables_version
,
0
,
0
,
data
,
q
-
data
);
}
...
...
libavformat/version.h
View file @
b7ed18b9
...
...
@@ -31,7 +31,7 @@
#define LIBAVFORMAT_VERSION_MAJOR 55
#define LIBAVFORMAT_VERSION_MINOR 13
#define LIBAVFORMAT_VERSION_MICRO 10
0
#define LIBAVFORMAT_VERSION_MICRO 10
1
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
...
...
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