[PATCH] Make the pad filter reject frames with negative linesizes.

Stefano Sabatini stefano.sabatini-lala
Mon Dec 27 18:51:51 CET 2010


Fix a crash with: "vflip, pad=W:H:X:Y" in ffplay.
---
 libavfilter/vf_pad.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
index a661b9c..b57989b 100644
--- a/libavfilter/vf_pad.c
+++ b/libavfilter/vf_pad.c
@@ -331,7 +331,8 @@ AVFilter avfilter_vf_pad = {
                                     .get_video_buffer = get_video_buffer,
                                     .start_frame      = start_frame,
                                     .draw_slice       = draw_slice,
-                                    .end_frame        = end_frame, },
+                                    .end_frame        = end_frame,
+                                    .rej_perms       = AV_PERM_NEG_LINESIZES},
                                   { .name = NULL}},
 
     .outputs   = (AVFilterPad[]) {{ .name             = "default",
-- 
1.7.2.3


--FL5UXtIhxfXey3p5--



More information about the ffmpeg-devel mailing list