]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/formats.c
Alloc 16 extra bytes in libavfilter frames. Needed for MMX-optimized swscale.
[ffmpeg] / libavfilter / formats.c
index e558195a1d859203fdb0266e260e90ddc517d932..2a9bdb0bd0600b7001651ad8b49be709a5cfe3c7 100644 (file)
@@ -133,7 +133,12 @@ static int find_ref_index(AVFilterFormats **ref)
 
 void avfilter_formats_unref(AVFilterFormats **ref)
 {
-    int idx = find_ref_index(ref);
+    int idx;
+
+    if (!*ref)
+        return;
+
+    idx = find_ref_index(ref);
 
     if(idx >= 0)
         memmove((*ref)->refs + idx, (*ref)->refs + idx+1,