[FFmpeg-devel] [PATCH] ffprobe: report the corrupt flag on packets
rcombs
rcombs at rcombs.me
Mon Jun 20 03:27:20 EEST 2022
---
fftools/ffprobe.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 4e2fdbaec8..22a754ae44 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -2491,8 +2491,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 (pkt->side_data_elems) {
size_t size;
--
2.36.1
More information about the ffmpeg-devel
mailing list