[FFmpeg-devel] [PATCH] ffprobe: report the corrupt flag on packets

Marton Balint cus at passwd.hu
Sat Jul 9 12:49:34 EEST 2022



On Sun, 19 Jun 2022, rcombs wrote:

> ---
> 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' : '_');

Fate updates are missing. Otherwise LGTM.

Regards,
Marton


More information about the ffmpeg-devel mailing list