[FFmpeg-devel] [PATCH] libavformat/mpegts: expose raw packet size
Michael Niedermayer
michaelni at gmx.at
Thu Dec 19 15:21:52 CET 2013
On Thu, Dec 19, 2013 at 09:40:41AM -0200, Leandro Dorileo wrote:
> 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 at intel.com>
> ---
> libavformat/mpegts.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> index fa92fb7..4d40a88 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 },
> + {"packet_size", "Output option carrying the raw packet size.", offsetof(MpegTSContext, raw_packet_size), AV_OPT_TYPE_INT,
> + {.i64 = 0}, 0, 0, AV_OPT_FLAG_METADATA },
we already have a "packetsize" field, so "packet_size" seems confusing
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131219/e878e7f0/attachment.asc>
More information about the ffmpeg-devel
mailing list