[FFmpeg-devel] [PATCH] fix pad artifacting
Michael Niedermayer
michael at niedermayer.cc
Sat Feb 1 02:52:21 EET 2025
Hi
On Sat, Feb 01, 2025 at 12:18:08AM +0000, Ben Lu via ffmpeg-devel wrote:
> When using pad with eval=frame with variable frame sizes, we get
> significant artifacting. This is due to incorrect frame sizes, resulting in
> invalid frames. Made changes to use the output width and height for frame
> sizes when using eval=frame, with if statement guards to make sure the
> normal usage is unaffected
>
> Signed-off-by: Ben Lu <benlu at x.com>
> ---
> libavfilter/vf_pad.c | 29 +++++++++++++++++++++--------
> 1 file changed, 21 insertions(+), 8 deletions(-)
>
> diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
> index 49fb272b24..846dd0a9f4 100644
> --- a/libavfilter/vf_pad.c
> +++ b/libavfilter/vf_pad.c
> @@ -237,15 +237,24 @@ static AVFrame *get_video_buffer(AVFilterLink
> *inlink, int w, int h)
error: corrupt patch at line 10
check your editor line/word wrap break settings or attach the patch or use git send-email
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
"I am not trying to be anyone's saviour, I'm trying to think about the
future and not be sad" - Elon Musk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250201/edc53dd9/attachment.sig>
More information about the ffmpeg-devel
mailing list