summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-06 13:28:25 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-06 13:28:25 +0000
commitf9810c0dfb769caa7e67660e59727aaf6b00fdbc (patch)
treeb3bba789c738aedb04f65dc9c8859b1f0a0a644d /TOOLS
parent92f79295d22d4d8810c7c02a006c47f3ab8dd8ab (diff)
downloadmpv-f9810c0dfb769caa7e67660e59727aaf6b00fdbc.tar.bz2
mpv-f9810c0dfb769caa7e67660e59727aaf6b00fdbc.tar.xz
Fix the linking of TOOLS/netstream and TOOLS/vivodump.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26995 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/netstream.c65
-rw-r--r--TOOLS/vivodump.c5
2 files changed, 17 insertions, 53 deletions
diff --git a/TOOLS/netstream.c b/TOOLS/netstream.c
index d536dc6373..c9ab7cdec7 100644
--- a/TOOLS/netstream.c
+++ b/TOOLS/netstream.c
@@ -46,16 +46,18 @@
/// Netstream packets def and some helpers
#include "stream/netstream.h"
-
-//Set some standard variables
-char* dvdsub_lang=NULL;
-char* audio_lang=NULL;
-int sub_justify=0;
-int identify=0;
-int dvdsub_id=0;
-int audio_id=0;
-int video_id=0;
-void af_fmt2str() {};
+// linking hacks
+char *info_name;
+char *info_artist;
+char *info_genre;
+char *info_subject;
+char *info_copyright;
+char *info_sourceform;
+char *info_comment;
+
+char* out_filename = NULL;
+char* force_fourcc=NULL;
+char* passtmpfile="divx2pass.log";
#ifdef __MINGW32__
#define usleep sleep
@@ -367,46 +369,3 @@ int main(void) {
}
return main_loop(listen_fd);
}
-
-
-
-//---- For libmpdemux
-
-float stream_cache_seek_min_percent=50.0;
-float stream_cache_min_percent=20.0;
-
-#include <libmpdemux/demuxer.h>
-#include <libmpdemux/stheader.h>
-
-// audio stream skip/resync functions requires only for seeking.
-// (they should be implemented in the audio codec layer)
-void skip_audio_frame(sh_audio_t *sh_audio){
- sh_audio=NULL;
-}
-void resync_audio_stream(sh_audio_t *sh_audio){
- sh_audio=NULL;
-}
-
-int mp_input_check_interrupt(int time){
- if(time) usleep(time);
- return 0;
-}
-
-// for libdvdread:
-#include "get_path.c"
-
-// linking hacks
-int stream_cache_size=0;
-int index_mode=0;
-
-// for demux_ogg:
-void* vo_sub=NULL;
-int vo_osd_changed(int new_value){ new_value++; return 0;}
-int subcc_enabled=0;
-
-float sub_fps=0;
-int sub_utf8=0;
-int suboverlap_enabled = 1;
-float sub_delay=0;
-
-//---------------
diff --git a/TOOLS/vivodump.c b/TOOLS/vivodump.c
index fe1cd90d77..a89cb3da2a 100644
--- a/TOOLS/vivodump.c
+++ b/TOOLS/vivodump.c
@@ -10,6 +10,7 @@
#include "libmpdemux/muxer.h"
#include "libmpdemux/demuxer.h"
+/* linking hacks */
char *info_name;
char *info_artist;
char *info_genre;
@@ -18,6 +19,10 @@ char *info_copyright;
char *info_sourceform;
char *info_comment;
+char* out_filename = NULL;
+char* force_fourcc=NULL;
+char* passtmpfile="divx2pass.log";
+
static const short h263_format[8][2] = {
{ 0, 0 },
{ 128, 96 },