diff mbox

[FFmpeg-devel,1/2] fftools/ffmpeg_filter: remove sws_param option from buffersrc

Message ID 20191204134146.4042-1-quinkblack@foxmail.com
State New
Headers show

Commit Message

zhilizhao Dec. 4, 2019, 1:41 p.m. UTC
From: Zhao Zhili <zhilizhao@tencent.com>

The option is deprecated and ignored by buffersrc.
---
 fftools/ffmpeg_filter.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

zhilizhao Dec. 24, 2019, 3:02 p.m. UTC | #1
Ping for review, thanks!

> On Dec 4, 2019, at 9:41 PM, quinkblack@foxmail.com wrote:
> 
> From: Zhao Zhili <zhilizhao@tencent.com>
> 
> The option is deprecated and ignored by buffersrc.
> ---
> fftools/ffmpeg_filter.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
> index 72838de1e2..40cc4c191c 100644
> --- a/fftools/ffmpeg_filter.c
> +++ b/fftools/ffmpeg_filter.c
> @@ -786,10 +786,9 @@ static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter,
>     av_bprint_init(&args, 0, AV_BPRINT_SIZE_AUTOMATIC);
>     av_bprintf(&args,
>              "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:"
> -             "pixel_aspect=%d/%d:sws_param=flags=%d",
> +             "pixel_aspect=%d/%d",
>              ifilter->width, ifilter->height, ifilter->format,
> -             tb.num, tb.den, sar.num, sar.den,
> -             SWS_BILINEAR + ((ist->dec_ctx->flags&AV_CODEC_FLAG_BITEXACT) ? SWS_BITEXACT:0));
> +             tb.num, tb.den, sar.num, sar.den);
>     if (fr.num && fr.den)
>         av_bprintf(&args, ":frame_rate=%d/%d", fr.num, fr.den);
>     snprintf(name, sizeof(name), "graph %d input from stream %d:%d", fg->index,
> -- 
> 2.22.0
> 
> 
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox

Patch

diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 72838de1e2..40cc4c191c 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -786,10 +786,9 @@  static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter,
     av_bprint_init(&args, 0, AV_BPRINT_SIZE_AUTOMATIC);
     av_bprintf(&args,
              "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:"
-             "pixel_aspect=%d/%d:sws_param=flags=%d",
+             "pixel_aspect=%d/%d",
              ifilter->width, ifilter->height, ifilter->format,
-             tb.num, tb.den, sar.num, sar.den,
-             SWS_BILINEAR + ((ist->dec_ctx->flags&AV_CODEC_FLAG_BITEXACT) ? SWS_BITEXACT:0));
+             tb.num, tb.den, sar.num, sar.den);
     if (fr.num && fr.den)
         av_bprintf(&args, ":frame_rate=%d/%d", fr.num, fr.den);
     snprintf(name, sizeof(name), "graph %d input from stream %d:%d", fg->index,