]> git.sesse.net Git - x264/blobdiff - filters/video/resize.c
Fix possible crashes in resize and crop filters with high bitdepth input
[x264] / filters / video / resize.c
index 197a0e385c3f0d42e54f667db5ce9e9196186bd5..1974710555acc9abeb5762b058ec668eb5236f87 100644 (file)
@@ -392,7 +392,7 @@ static int check_resizer( resizer_hnd_t *h, cli_pic_t *in )
     h->scale = input_prop;
     if( !h->buffer_allocated )
     {
-        if( x264_cli_pic_alloc( &h->buffer, h->dst_csp, h->dst.width, h->dst.height ) )
+        if( x264_cli_pic_alloc_aligned( &h->buffer, h->dst_csp, h->dst.width, h->dst.height ) )
             return -1;
         h->buffer_allocated = 1;
     }