[FFmpeg-devel] [PATCH 6/6] ffprobe.c: Indicate decode-but-discard packets when doing -show_packets.

Michael Niedermayer michael at niedermayer.cc
Sat Sep 24 03:08:45 EEST 2016


On Thu, Sep 15, 2016 at 01:36:19PM -0700, Sasi Inguva wrote:
> Signed-off-by: Sasi Inguva <isasi at google.com>
> ---
>  ffprobe.c                                          |   3 +-
>  tests/ref/fate/concat-demuxer-extended-lavf-mxf    |   2 +-
>  .../ref/fate/concat-demuxer-extended-lavf-mxf_d10  |   2 +-
>  tests/ref/fate/concat-demuxer-simple1-lavf-mxf     | 242 ++++++++---------
>  tests/ref/fate/concat-demuxer-simple1-lavf-mxf_d10 | 140 +++++-----
>  tests/ref/fate/concat-demuxer-simple2-lavf-ts      | 298 ++++++++++-----------
>  tests/ref/fate/ffprobe_compact                     |  28 +-
>  tests/ref/fate/ffprobe_csv                         |  28 +-
>  tests/ref/fate/ffprobe_default                     |  28 +-
>  tests/ref/fate/ffprobe_flat                        |  28 +-
>  tests/ref/fate/ffprobe_ini                         |  28 +-
>  tests/ref/fate/ffprobe_json                        |  28 +-
>  tests/ref/fate/ffprobe_xml                         |  28 +-
>  13 files changed, 442 insertions(+), 441 deletions(-)
> 
> diff --git a/ffprobe.c b/ffprobe.c
> index 657867d..e64c66e 100644
> --- a/ffprobe.c
> +++ b/ffprobe.c
> @@ -1815,7 +1815,8 @@ static void show_packet(WriterContext *w, InputFile *ifile, AVPacket *pkt, int p
>      print_val("size",             pkt->size, unit_byte_str);
>      if (pkt->pos != -1) print_fmt    ("pos", "%"PRId64, pkt->pos);
>      else                print_str_opt("pos", "N/A");
> -    print_fmt("flags", "%c",      pkt->flags & AV_PKT_FLAG_KEY ? 'K' : '_');
> +    print_fmt("flags", "%c%c",      pkt->flags & AV_PKT_FLAG_KEY ? 'K' : '_',
> +              pkt->flags & AV_PKT_FLAG_DISCARD ? 'D' : '_');

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160924/7af53481/attachment.sig>


More information about the ffmpeg-devel mailing list