summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-16 21:32:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-16 21:51:28 +0200
commit74dbb5388e356c085b2f426a5533c08cdc163488 (patch)
treeb93f0769155db5cfa26f622428a50e8eac9ab38c /libavcodec
parent482aabd59a9da807e88fc7796b0764290b62cf11 (diff)
av_tempfile: Pass int log_offset, void *log_ctx
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libxvid_rc.c2
-rw-r--r--libavcodec/libxvidff.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libxvid_rc.c b/libavcodec/libxvid_rc.c
index 37716acc4a..8a2b487122 100644
--- a/libavcodec/libxvid_rc.c
+++ b/libavcodec/libxvid_rc.c
@@ -41,7 +41,7 @@ int ff_xvid_rate_control_init(MpegEncContext *s){
//xvid_debug=-1;
- fd=av_tempfile("xvidrc.", &tmp_name);
+ fd=av_tempfile("xvidrc.", &tmp_name, 0, s->avctx);
if (fd == -1) {
av_log(NULL, AV_LOG_ERROR, "Can't create temporary pass2 file.\n");
return -1;
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c
index ba950edc39..f7aa7fd44e 100644
--- a/libavcodec/libxvidff.c
+++ b/libavcodec/libxvidff.c
@@ -232,7 +232,7 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx) {
rc2pass2.version = XVID_VERSION;
rc2pass2.bitrate = avctx->bit_rate;
- fd = av_tempfile("xvidff.", &(x->twopassfile));
+ fd = av_tempfile("xvidff.", &(x->twopassfile), 0, avctx);
if( fd == -1 ) {
av_log(avctx, AV_LOG_ERROR,
"Xvid: Cannot write 2-pass pipe\n");