summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorgpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-26 10:43:34 +0000
committergpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-26 10:43:34 +0000
commitef98da6060057e8b25b2df453ae2231da3483d95 (patch)
tree210864f7e355e1902c8c937327f8a22b9716af38 /libmpcodecs
parent5d8ec7a49aa11af3dd4e02110667141df1f7b807 (diff)
downloadmpv-ef98da6060057e8b25b2df453ae2231da3483d95.tar.bz2
mpv-ef98da6060057e8b25b2df453ae2231da3483d95.tar.xz
make xvid encoding use the filename from
-passlogfile to store and retreive pass information. Patch by Olivier Rolland < billl AH users POIS sf POIS net> Original thread: Date: Sep 25, 2005 9:41 PM Subject: [MPlayer-dev-eng] [PATCH] XviD and -passlogfile git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16603 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_xvid4.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libmpcodecs/ve_xvid4.c b/libmpcodecs/ve_xvid4.c
index b772676b5e..eae0c3c337 100644
--- a/libmpcodecs/ve_xvid4.c
+++ b/libmpcodecs/ve_xvid4.c
@@ -57,7 +57,6 @@
#include "m_option.h"
-#define XVID_FIRST_PASS_FILENAME "xvid-twopass.stats"
#define FINE (!0)
#define BAD (!FINE)
@@ -230,6 +229,8 @@ static profile_t *profileFromName(char *str)
* Configuration options
****************************************************************************/
+extern char* passtmpfile;
+
static int xvidenc_bitrate = 0;
static int xvidenc_pass = 0;
static float xvidenc_quantizer = 0;
@@ -1190,7 +1191,7 @@ static int set_create_struct(xvid_mplayer_module_t *mod)
/* There is not much to initialize for this plugin */
pass1->version = XVID_VERSION;
- pass1->filename = XVID_FIRST_PASS_FILENAME;
+ pass1->filename = passtmpfile;
create->plugins[create->num_plugins].func = xvid_plugin_2pass1;
create->plugins[create->num_plugins].param = pass1;
@@ -1206,7 +1207,7 @@ static int set_create_struct(xvid_mplayer_module_t *mod)
/* There is not much left to initialize after dispatch settings */
pass2->version = XVID_VERSION;
- pass2->filename = XVID_FIRST_PASS_FILENAME;
+ pass2->filename = passtmpfile;
/* Positive bitrate values are bitrates as usual but if the
* value is negative it is considered as being a total size