[FFmpeg-devel] [PATCH] ffprobe: show packet duration in frame
Clément Bœsch
ubitux at gmail.com
Wed Jun 6 00:31:33 CEST 2012
On Tue, Jun 05, 2012 at 07:19:36PM +0200, Stefano Sabatini wrote:
> ---
> doc/ffprobe.xsd | 2 ++
> ffprobe.c | 2 ++
> 2 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/doc/ffprobe.xsd b/doc/ffprobe.xsd
> index f8e9fe9..7f12a36 100644
> --- a/doc/ffprobe.xsd
> +++ b/doc/ffprobe.xsd
> @@ -53,6 +53,8 @@
> <xsd:attribute name="pkt_pts_time" type="xsd:float"/>
> <xsd:attribute name="pkt_dts" type="xsd:long" />
> <xsd:attribute name="pkt_dts_time" type="xsd:float"/>
> + <xsd:attribute name="pkt_duration" type="xsd:long" />
> + <xsd:attribute name="pkt_duration_time" type="xsd:float"/>
> <xsd:attribute name="pkt_pos" type="xsd:long" />
>
> <!-- audio attributes -->
> diff --git a/ffprobe.c b/ffprobe.c
> index eca126d..7cf834c 100644
> --- a/ffprobe.c
> +++ b/ffprobe.c
> @@ -1567,6 +1567,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream)
> print_time("pkt_pts_time", frame->pkt_pts, &stream->time_base);
> print_ts ("pkt_dts", frame->pkt_dts);
> print_time("pkt_dts_time", frame->pkt_dts, &stream->time_base);
> + print_duration_ts ("pkt_duration", frame->pkt_duration);
> + print_duration_time("pkt_duration_time", frame->pkt_duration, &stream->time_base);
> if (frame->pkt_pos != -1) print_fmt ("pkt_pos", "%"PRId64, frame->pkt_pos);
> else print_str_opt("pkt_pos", "N/A");
>
Looks OK
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120606/7ae692e7/attachment.asc>
More information about the ffmpeg-devel
mailing list