libavutil: use avpriv_open()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
869b04e891
commit
880391ed2d
@@ -30,13 +30,14 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include "internal.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "random_seed.h"
|
#include "random_seed.h"
|
||||||
|
|
||||||
static int read_random(uint32_t *dst, const char *file)
|
static int read_random(uint32_t *dst, const char *file)
|
||||||
{
|
{
|
||||||
#if HAVE_UNISTD_H
|
#if HAVE_UNISTD_H
|
||||||
int fd = open(file, O_RDONLY);
|
int fd = avpriv_open(file, O_RDONLY);
|
||||||
int err = -1;
|
int err = -1;
|
||||||
|
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user