summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorLeandro Dorileo <leandro.maciel.dorileo@intel.com>2014-01-31 14:48:11 -0200
committerAnton Khirnov <anton@khirnov.net>2014-02-19 21:52:17 +0100
commit8370a6fa59429e420999a738bc6c0d5a6ac4003a (patch)
treeee6926ab036c233a4a403bde723e094717119b4b /libavformat/mpegts.c
parentc3ecd968f0e78da6e77f0c06c2f785b266d83cf1 (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: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 3f828b4f26..5962592202 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -134,6 +134,8 @@ struct MpegTSContext {
static const AVOption 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_DECODING_PARAM | AV_OPT_FLAG_EXPORT | AV_OPT_FLAG_READONLY },
{ NULL },
};