]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/v4l2.c
avformat: Use av_reallocp_array() where suitable
[ffmpeg] / libavdevice / v4l2.c
index 23d58ab006dc0e018acd636a1eeb5d9f7fac8420..adb289d14085267bbbc6e961368ed019d233385f 100644 (file)
@@ -124,7 +124,7 @@ static int device_open(AVFormatContext *ctx)
         flags |= O_NONBLOCK;
     }
 
-    fd = open(ctx->filename, flags, 0);
+    fd = avpriv_open(ctx->filename, flags);
     if (fd < 0) {
         err = errno;