summaryrefslogtreecommitdiff
path: root/avtools
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2017-03-23 12:20:50 +0100
committerLuca Barbato <lu_zero@gentoo.org>2017-03-23 12:52:58 +0100
commit8c616b3b8996bd4f9b117496b66b16cc625d7d24 (patch)
treedd40063e9af3c5c1072034d262f1d7ff774b64ac /avtools
parent883ce264d9ffc5bdaf477e09ee155b03339c46a6 (diff)
avplay: Use the named syntax for buffersrc arguments
Avoid confusion.
Diffstat (limited to 'avtools')
-rw-r--r--avtools/avplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avtools/avplay.c b/avtools/avplay.c
index 18879e16bc..26279e857d 100644
--- a/avtools/avplay.c
+++ b/avtools/avplay.c
@@ -1441,7 +1441,8 @@ static int configure_video_filters(AVFilterGraph *graph, PlayerState *is, const
snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%"PRId64, sws_flags);
graph->scale_sws_opts = av_strdup(sws_flags_str);
- snprintf(buffersrc_args, sizeof(buffersrc_args), "%d:%d:%d:%d:%d:%d:%d",
+ snprintf(buffersrc_args, sizeof(buffersrc_args),
+ "width=%d:height=%d:pix_fmt=%d:time_base=%d/%d:sar=%d/%d",
codec->width, codec->height, codec->pix_fmt,
is->video_st->time_base.num, is->video_st->time_base.den,
codec->sample_aspect_ratio.num, codec->sample_aspect_ratio.den);