]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/imgconvert.c
Implement a SIMD version of emulated_edge_mc() for x86.
[ffmpeg] / libavcodec / imgconvert.c
index e40de6ebec5d318b09e7b949f65b09924f7a17ed..6b0c049e2a532ce1b14e58bb7a6873b71bd78652 100644 (file)
@@ -813,9 +813,11 @@ void ff_shrink88(uint8_t *dst, int dst_wrap,
 int avpicture_alloc(AVPicture *picture,
                     enum PixelFormat pix_fmt, int width, int height)
 {
-    if (av_image_alloc(picture->data, picture->linesize, width, height, pix_fmt, 0) < 0) {
-    memset(picture, 0, sizeof(AVPicture));
-    return -1;
+    int ret;
+
+    if ((ret = av_image_alloc(picture->data, picture->linesize, width, height, pix_fmt, 1)) < 0) {
+        memset(picture, 0, sizeof(AVPicture));
+        return ret;
     }
 
     return 0;