fftools/ffmpeg_filter: simplify buffersrc arg printing
There's no need to go through full string expansion here.
This commit is contained in:
@@ -1498,11 +1498,10 @@ static int configure_input_video_filter(FilterGraph *fg, AVFilterGraph *graph,
|
|||||||
av_bprint_init(&args, 0, AV_BPRINT_SIZE_AUTOMATIC);
|
av_bprint_init(&args, 0, AV_BPRINT_SIZE_AUTOMATIC);
|
||||||
av_bprintf(&args,
|
av_bprintf(&args,
|
||||||
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:"
|
"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->width, ifp->height, ifp->format,
|
||||||
ifp->time_base.num, ifp->time_base.den, sar.num, sar.den,
|
ifp->time_base.num, ifp->time_base.den, sar.num, sar.den,
|
||||||
av_color_space_name(ifp->color_space),
|
ifp->color_space, ifp->color_range);
|
||||||
av_color_range_name(ifp->color_range));
|
|
||||||
if (fr.num && fr.den)
|
if (fr.num && fr.den)
|
||||||
av_bprintf(&args, ":frame_rate=%d/%d", 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,
|
snprintf(name, sizeof(name), "graph %d input from stream %d:%d", fg->index,
|
||||||
|
|||||||
Reference in New Issue
Block a user