]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/file.c
avfilter/vf_identity: fix typo
[ffmpeg] / libavutil / file.c
index b91c2fa391986e52620d93210896979ed5c04c74..f228b723ec717b193dae758a53ddffc980417d98 100644 (file)
@@ -143,7 +143,7 @@ out:
 
 void av_file_unmap(uint8_t *bufptr, size_t size)
 {
-    if (!size)
+    if (!size || !bufptr)
         return;
 #if HAVE_MMAP
     munmap(bufptr, size);