mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
libavcodec: use avpriv_open()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
880391ed2d
commit
fee9db1fdf
@ -28,6 +28,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "libavutil/attributes.h"
|
#include "libavutil/attributes.h"
|
||||||
|
#include "libavutil/internal.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "libxvid.h"
|
#include "libxvid.h"
|
||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
@ -54,7 +55,7 @@ int ff_tempfile(const char *prefix, char **filename) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#if !HAVE_MKSTEMP
|
#if !HAVE_MKSTEMP
|
||||||
fd = open(*filename, O_RDWR | O_BINARY | O_CREAT, 0444);
|
fd = avpriv_open(*filename, O_RDWR | O_BINARY | O_CREAT, 0444);
|
||||||
#else
|
#else
|
||||||
snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
|
snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
|
||||||
fd = mkstemp(*filename);
|
fd = mkstemp(*filename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user