aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffprobe.c
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2023-01-10 19:55:32 -0600
committerAnton Khirnov <anton@khirnov.net>2023-02-09 12:45:53 +0100
commit18cd65998bfe9651b1bd9496bba9f641c77920cd (patch)
tree919fb60d41d40dafa2dca13a8f5caf9a15a3f2b7 /fftools/ffprobe.c
parent63a348659b28ef481112ff063f33176d679de5e5 (diff)
downloadffmpeg-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.c5
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);