From f30a41a6086eb8c10f66090739a2a4f8491c3c7a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 8 Feb 2017 09:51:17 +0100 Subject: Stop hardcoding align=32 in av_frame_get_buffer() calls. Use 0, which selects the alignment automatically. --- libavfilter/vf_find_rect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/vf_find_rect.c') diff --git a/libavfilter/vf_find_rect.c b/libavfilter/vf_find_rect.c index 706e59cefe..b5f8fbcba6 100644 --- a/libavfilter/vf_find_rect.c +++ b/libavfilter/vf_find_rect.c @@ -80,7 +80,7 @@ static AVFrame *downscale(AVFrame *in) frame->width = (in->width + 1) / 2; frame->height = (in->height+ 1) / 2; - if (av_frame_get_buffer(frame, 32) < 0) { + if (av_frame_get_buffer(frame, 0) < 0) { av_frame_free(&frame); return NULL; } -- cgit v1.2.3