Ronald S. Bultje <rsbul...@gmail.com> added the comment:

>          av_picture_copy(&pict, &pict_src,
> -                        vp->pix_fmt, vp->width, vp->height);
> +                        vp->pix_fmt, dst_width, dst_height);
>  #else
>          sws_flags = av_get_int(sws_opts, "sws_flags", NULL);
>          is->img_convert_ctx = sws_getCachedContext(is-
>img_convert_ctx,
> -            vp->width, vp->height, vp->pix_fmt, vp->width, vp-
>height,
> +            vp->width, vp->height, vp->pix_fmt, dst_width, 
dst_height,
>              dst_pix_fmt, sws_flags, NULL, NULL, NULL);

Doesn't the top half of the #if/#else truncate the picture unscaled?

________________________________________________
FFmpeg issue tracker <iss...@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/issue2079>
________________________________________________

Reply via email to