[FFmpeg-devel] [PATCH] avfilter/vf_showinfo: also print chroma loc

Vittorio Giovara vittorio.giovara at gmail.com
Fri Oct 13 23:47:29 EEST 2023


On Fri, Oct 13, 2023 at 10:21 AM Niklas Haas <ffmpeg at haasn.xyz> wrote:

> From: Niklas Haas <git at haasn.dev>
>
> Curiously absent.
> ---
>  libavfilter/vf_showinfo.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
> index bf8580bc8d..71869446c6 100644
> --- a/libavfilter/vf_showinfo.c
> +++ b/libavfilter/vf_showinfo.c
> @@ -715,11 +715,11 @@ static int filter_frame(AVFilterLink *inlink,
> AVFrame *frame)
>      av_log(ctx, AV_LOG_INFO,
>             "n:%4"PRId64" pts:%7s pts_time:%-7s duration:%7"PRId64
>             " duration_time:%-7s "
> -           "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c ",
> +           "fmt:%s cl:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c ",
>             inlink->frame_count_out,
>             av_ts2str(frame->pts), av_ts2timestr(frame->pts,
> &inlink->time_base),
>             frame->duration, av_ts2timestr(frame->duration,
> &inlink->time_base),
> -           desc->name,
> +           desc->name, av_chroma_location_name(frame->chroma_location),
>             frame->sample_aspect_ratio.num, frame->sample_aspect_ratio.den,
>             frame->width, frame->height,
>             !(frame->flags & AV_FRAME_FLAG_INTERLACED)     ? 'P' :
>  /* Progressive  */
> --
>

ok
-- 
Vittorio


More information about the ffmpeg-devel mailing list