summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorLeandro Dorileo <l@dorileo.org>2013-12-19 14:39:51 -0200
committerMichael Niedermayer <michaelni@gmx.at>2013-12-19 19:06:32 +0100
commitf9b997c337873dad99f7fd505588b260febaf32b (patch)
treea76f1ecdd2dfade05a10c23587860cd90981e0c2 /libavformat/mpegts.c
parentae09db1023083cbc99009c9f16e83e159d0ea040 (diff)
libavformat/mpegts: expose raw packet size
We cannot easily determine if an mpeg TS's packet size is DVHS, FEC or so on, for that we need to expose the internal raw_packet_size field. Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index fa92fb7d81..18d8d8fc11 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -145,6 +145,8 @@ struct MpegTSContext {
static const AVOption mpegtsraw_options[] = {
{"compute_pcr", "Compute exact PCR for each transport stream packet.", offsetof(MpegTSContext, mpeg2ts_compute_pcr), AV_OPT_TYPE_INT,
{.i64 = 0}, 0, 1, AV_OPT_FLAG_DECODING_PARAM },
+ {"ts_packetsize", "Output option carrying the raw packet size.", offsetof(MpegTSContext, raw_packet_size), AV_OPT_TYPE_INT,
+ {.i64 = 0}, 0, 0, AV_OPT_FLAG_METADATA },
{ NULL },
};
@@ -158,6 +160,8 @@ static const AVClass mpegtsraw_class = {
static const AVOption mpegts_options[] = {
{"fix_teletext_pts", "Try to fix pts values of dvb teletext streams.", offsetof(MpegTSContext, fix_teletext_pts), AV_OPT_TYPE_INT,
{.i64 = 1}, 0, 1, AV_OPT_FLAG_DECODING_PARAM },
+ {"ts_packetsize", "Output option carrying the raw packet size.", offsetof(MpegTSContext, raw_packet_size), AV_OPT_TYPE_INT,
+ {.i64 = 0}, 0, 0, AV_OPT_FLAG_METADATA },
{ NULL },
};