Commit 251f3987 authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Marton Balint

ffplay: use key=val syntax for the buffersrc args

Fix warning:
[src @ ...] Flat options syntax is deprecated, use key=value pairs.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 1125606a
...@@ -1560,7 +1560,8 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c ...@@ -1560,7 +1560,8 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags); snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags);
graph->scale_sws_opts = av_strdup(sws_flags_str); 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),
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
codec->width, codec->height, codec->pix_fmt, codec->width, codec->height, codec->pix_fmt,
is->video_st->time_base.num, is->video_st->time_base.den, is->video_st->time_base.num, is->video_st->time_base.den,
codec->sample_aspect_ratio.num, codec->sample_aspect_ratio.den); codec->sample_aspect_ratio.num, codec->sample_aspect_ratio.den);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment