From 6951639d24b1dcb0a1d9c48fdd44032f3acbf2f4 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 1 Mar 2017 22:32:41 +0100 Subject: [PATCH] [transcode] Adjustments for libav 12 --- src/transcode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/transcode.c b/src/transcode.c index bbf59cee..dd6c322e 100644 --- a/src/transcode.c +++ b/src/transcode.c @@ -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)