Browse code

ffplay: fix sws_flags

Fixes Ticket45

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2013/01/01 02:30:03
Showing 1 changed files
... ...
@@ -1753,6 +1753,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
1753 1753
     if (!buffersink_params)
1754 1754
         return AVERROR(ENOMEM);
1755 1755
 
1756
+    av_opt_get_int(sws_opts, "sws_flags", 0, &sws_flags);
1756 1757
     snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%"PRId64, sws_flags);
1757 1758
     graph->scale_sws_opts = av_strdup(sws_flags_str);
1758 1759