diff options
author | Niklas Haas <git@haasn.dev> | 2024-01-10 10:05:47 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-02-02 13:24:27 +0100 |
commit | f7b1017d7378e44daa7971fa2bf79738964d2002 (patch) | |
tree | 8276119877210638f3f7504873abb1580ee00827 /fftools/ffmpeg_filter.c | |
parent | dcc7263b0e7935b6864e43465cfeca423bdf9e77 (diff) | |
download | ffmpeg-f7b1017d7378e44daa7971fa2bf79738964d2002.tar.gz |
fftools/ffmpeg_filter: simplify buffersrc arg printing
There's no need to go through full string expansion here.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r-- | fftools/ffmpeg_filter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 3e41e57986..38ddd1963a 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1498,11 +1498,10 @@ static int configure_input_video_filter(FilterGraph *fg, AVFilterGraph *graph, av_bprint_init(&args, 0, AV_BPRINT_SIZE_AUTOMATIC); av_bprintf(&args, "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:" - "pixel_aspect=%d/%d:colorspace=%s:range=%s", + "pixel_aspect=%d/%d:colorspace=%d:range=%d", ifp->width, ifp->height, ifp->format, ifp->time_base.num, ifp->time_base.den, sar.num, sar.den, - av_color_space_name(ifp->color_space), - av_color_range_name(ifp->color_range)); + ifp->color_space, ifp->color_range); if (fr.num && fr.den) av_bprintf(&args, ":frame_rate=%d/%d", fr.num, fr.den); snprintf(name, sizeof(name), "graph %d input from stream %d:%d", fg->index, |