rc2pass2.version = XVID_VERSION;
rc2pass2.bitrate = avctx->bit_rate;
- fd = av_tempfile("xvidff.", &x->twopassfile, 0, avctx);
+ fd = avpriv_tempfile("xvidff.", &x->twopassfile, 0, avctx);
if (fd < 0) {
av_log(avctx, AV_LOG_ERROR, "Xvid: Cannot write 2-pass pipe\n");
return fd;
#include <xvid.h>
#include "libavutil/attributes.h"
-#include "libavutil/file.h"
+#include "libavutil/internal.h"
#include "avcodec.h"
#include "libxvid.h"
xvid_plg_create_t xvid_plg_create = { 0 };
xvid_plugin_2pass2_t xvid_2pass2 = { 0 };
- fd = av_tempfile("xvidrc.", &tmp_name, 0, s->avctx);
+ fd = avpriv_tempfile("xvidrc.", &tmp_name, 0, s->avctx);
if (fd < 0) {
av_log(NULL, AV_LOG_ERROR, "Can't create temporary pass2 file.\n");
return fd;
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
-#include "libavutil/file.h"
+#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/tree.h"
#include "avformat.h"
av_strstart(arg, "cache:", &arg);
- c->fd = av_tempfile("ffcache", &buffername, 0, h);
+ c->fd = avpriv_tempfile("ffcache", &buffername, 0, h);
if (c->fd < 0){
av_log(h, AV_LOG_ERROR, "Failed to create tempfile\n");
return c->fd;