projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
880391e
)
libavcodec: use avpriv_open()
author
Rémi Denis-Courmont
<remi@remlab.net>
Tue, 6 Aug 2013 18:19:26 +0000
(21:19 +0300)
committer
Anton Khirnov
<anton@khirnov.net>
Wed, 7 Aug 2013 19:13:12 +0000
(21:13 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/libxvid_rc.c
patch
|
blob
|
history
diff --git
a/libavcodec/libxvid_rc.c
b/libavcodec/libxvid_rc.c
index 9084d33e7ab24be830d8f56ffb25cfe9b0c24566..7f4a89d25d135058350fda97e6a0cfa885538895 100644
(file)
--- a/
libavcodec/libxvid_rc.c
+++ b/
libavcodec/libxvid_rc.c
@@
-28,6
+28,7
@@
#endif
#include "libavutil/attributes.h"
+#include "libavutil/internal.h"
#include "avcodec.h"
#include "libxvid.h"
#include "mpegvideo.h"
@@
-54,7
+55,7
@@
int ff_tempfile(const char *prefix, char **filename) {
return -1;
}
#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
snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
fd = mkstemp(*filename);