diff options
author | rcombs <rcombs@rcombs.me> | 2023-01-10 19:55:32 -0600 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-02-09 12:45:53 +0100 |
commit | 18cd65998bfe9651b1bd9496bba9f641c77920cd (patch) | |
tree | 919fb60d41d40dafa2dca13a8f5caf9a15a3f2b7 /fftools/ffprobe.c | |
parent | 63a348659b28ef481112ff063f33176d679de5e5 (diff) | |
download | ffmpeg-18cd65998bfe9651b1bd9496bba9f641c77920cd.tar.gz |
ffprobe: report the corrupt flag on packets
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'fftools/ffprobe.c')
-rw-r--r-- | fftools/ffprobe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index dfa7ff1b24..db5e4ecdf1 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2513,8 +2513,9 @@ 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%c", pkt->flags & AV_PKT_FLAG_KEY ? 'K' : '_', - pkt->flags & AV_PKT_FLAG_DISCARD ? 'D' : '_'); + print_fmt("flags", "%c%c%c", pkt->flags & AV_PKT_FLAG_KEY ? 'K' : '_', + pkt->flags & AV_PKT_FLAG_DISCARD ? 'D' : '_', + pkt->flags & AV_PKT_FLAG_CORRUPT ? 'C' : '_'); if (do_show_data) writer_print_data(w, "data", pkt->data, pkt->size); writer_print_data_hash(w, "data_hash", pkt->data, pkt->size); |