[FFmpeg-cvslog] ffplay: use key=val syntax for the buffersrc args

Stefano Sabatini git at videolan.org
Sun Jun 17 23:50:31 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Jun 17 12:21:27 2012 +0200| [251f398798967380ce3fa3d1035e98c33e688338] | committer: 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: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=251f398798967380ce3fa3d1035e98c33e688338
---

 ffplay.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 0644115..afd8f9c 100644
--- a/ffplay.c
+++ b/ffplay.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);
     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,
              is->video_st->time_base.num, is->video_st->time_base.den,
              codec->sample_aspect_ratio.num, codec->sample_aspect_ratio.den);



More information about the ffmpeg-cvslog mailing list