mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[transcode] Adjustments for libav 12
This commit is contained in:
parent
441ad006a6
commit
6951639d24
@ -991,8 +991,8 @@ open_filter(struct stream_ctx *out_stream, struct stream_ctx *in_stream)
|
||||
}
|
||||
|
||||
snprintf(args, sizeof(args),
|
||||
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
|
||||
in_stream->codec->width, in_stream->codec->height, in_stream->codec->pix_fmt,
|
||||
"width=%d:height=%d:pix_fmt=%s:time_base=%d/%d:sar=%d/%d",
|
||||
in_stream->codec->width, in_stream->codec->height, av_get_pix_fmt_name(in_stream->codec->pix_fmt),
|
||||
in_stream->stream->time_base.num, in_stream->stream->time_base.den,
|
||||
in_stream->codec->sample_aspect_ratio.num, in_stream->codec->sample_aspect_ratio.den);
|
||||
|
||||
@ -1014,7 +1014,7 @@ open_filter(struct stream_ctx *out_stream, struct stream_ctx *in_stream)
|
||||
}
|
||||
|
||||
snprintf(args, sizeof(args),
|
||||
"width=%d:height=%d", out_stream->codec->width, out_stream->codec->height);
|
||||
"w=%d:h=%d", out_stream->codec->width, out_stream->codec->height);
|
||||
|
||||
ret = avfilter_graph_create_filter(&scale_ctx, scale, "scale", args, NULL, filter_graph);
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user