[FFmpeg-devel] [PATCH] ffplay: fix sws_flags

Michael Niedermayer michaelni at gmx.at
Mon Dec 31 18:31:38 CET 2012


Fixes Ticket45

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 ffplay.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffplay.c b/ffplay.c
index 7d47bcd..e2e226f 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1753,6 +1753,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
     if (!buffersink_params)
         return AVERROR(ENOMEM);
 
+    av_opt_get_int(sws_opts, "sws_flags", 0, &sws_flags);
     snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%"PRId64, sws_flags);
     graph->scale_sws_opts = av_strdup(sws_flags_str);
 
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list