diff --git a/mkvinfo.cpp b/mkvinfo.cpp index 8e691c0bc..eb1075332 100644 --- a/mkvinfo.cpp +++ b/mkvinfo.cpp @@ -12,7 +12,7 @@ /*! \file - \version \$Id: mkvinfo.cpp,v 1.6 2003/04/13 14:00:54 mosu Exp $ + \version \$Id: mkvinfo.cpp,v 1.7 2003/04/13 15:23:02 mosu Exp $ \brief retrieves and displays information about a Matroska file \author Moritz Bunkus */ @@ -69,7 +69,7 @@ using namespace LIBMATROSKA_NAMESPACE; typedef struct track_t { int tnum; char type; - u_int64_t size; + int64_t size; } track_t; track_t **tracks = NULL; @@ -148,7 +148,7 @@ void process_file() { // Elements for different levels EbmlElement *l0 = NULL, *l1 = NULL, *l2 = NULL, *l3 = NULL, *l4 = NULL; EbmlStream *es; - u_int64_t last_pos; + int64_t last_pos; u_int32_t cluster_tc; try { diff --git a/mkvmerge.cpp b/mkvmerge.cpp index cb72330be..d3bc4b9fe 100644 --- a/mkvmerge.cpp +++ b/mkvmerge.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: mkvmerge.cpp,v 1.29 2003/04/13 14:00:54 mosu Exp $ + \version \$Id: mkvmerge.cpp,v 1.30 2003/04/13 15:23:02 mosu Exp $ \brief command line parameter parsing, looping, output handling \author Moritz Bunkus */ @@ -171,7 +171,7 @@ static void usage(void) { static int get_type(char *filename) { FILE *f = fopen(filename, "r"); - u_int64_t size; + int64_t size; if (f == NULL) { fprintf(stderr, "Error: could not open source file (%s).\n", filename); @@ -723,7 +723,7 @@ static void parse_args(int argc, char **argv) { } static int write_packet(packet_t *pack) { - u_int64_t timecode; + int64_t timecode; cluster_helper->add_packet(pack); timecode = cluster_helper->get_timecode(); diff --git a/p_ac3.cpp b/p_ac3.cpp index 0b44a387c..b3a26fa77 100644 --- a/p_ac3.cpp +++ b/p_ac3.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: p_ac3.cpp,v 1.8 2003/04/11 10:32:31 mosu Exp $ + \version \$Id: p_ac3.cpp,v 1.9 2003/04/13 15:23:02 mosu Exp $ \brief AC3 output module \author Moritz Bunkus */ @@ -200,7 +200,7 @@ int ac3_packetizer_c::process(unsigned char *buf, int size, unsigned char *packet; unsigned long header; ac3_header_t ac3header; - u_int64_t my_timecode; + int64_t my_timecode; if (timecode != -1) my_timecode = timecode; @@ -208,8 +208,8 @@ int ac3_packetizer_c::process(unsigned char *buf, int size, add_to_buffer(buf, size); while ((packet = get_ac3_packet(&header, &ac3header)) != NULL) { if (timecode != -1) - my_timecode = (u_int64_t)(1000.0 * packetno * 1536 * ti->async.linear / - samples_per_sec); + my_timecode = (int64_t)(1000.0 * packetno * 1536 * ti->async.linear / + samples_per_sec); add_packet(packet, ac3header.bytes, my_timecode); packetno++; diff --git a/p_ac3.h b/p_ac3.h index f71b542ff..f9392e229 100644 --- a/p_ac3.h +++ b/p_ac3.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: p_ac3.h,v 1.8 2003/04/11 10:36:55 mosu Exp $ + \version \$Id: p_ac3.h,v 1.9 2003/04/13 15:23:02 mosu Exp $ \brief class definition for the AC3 output module \author Moritz Bunkus */ @@ -27,7 +27,7 @@ class ac3_packetizer_c: public q_c { private: - u_int64_t bytes_output, packetno; + int64_t bytes_output, packetno; unsigned long samples_per_sec; int channels; unsigned char *packet_buffer; diff --git a/p_mp3.cpp b/p_mp3.cpp index 8c1f86632..f7db318bc 100644 --- a/p_mp3.cpp +++ b/p_mp3.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: p_mp3.cpp,v 1.9 2003/04/11 11:19:30 mosu Exp $ + \version \$Id: p_mp3.cpp,v 1.10 2003/04/13 15:23:02 mosu Exp $ \brief MP3 output module \author Moritz Bunkus */ @@ -196,7 +196,7 @@ int mp3_packetizer_c::process(unsigned char *buf, int size, unsigned char *packet; unsigned long header; mp3_header_t mp3header; - u_int64_t my_timecode; + int64_t my_timecode; if (timecode != -1) my_timecode = timecode; @@ -210,8 +210,8 @@ int mp3_packetizer_c::process(unsigned char *buf, int size, } if (timecode == -1) - my_timecode = (u_int64_t)(1000.0 * packetno * 1152 * ti->async.linear / - samples_per_sec); + my_timecode = (int64_t)(1000.0 * packetno * 1152 * ti->async.linear / + samples_per_sec); add_packet(packet, mp3header.framesize + 4, my_timecode); packetno++; diff --git a/p_mp3.h b/p_mp3.h index 4f37c5b2a..918f822a7 100644 --- a/p_mp3.h +++ b/p_mp3.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: p_mp3.h,v 1.8 2003/04/11 11:19:49 mosu Exp $ + \version \$Id: p_mp3.h,v 1.9 2003/04/13 15:23:02 mosu Exp $ \brief class definition for the MP3 output module \author Moritz Bunkus */ @@ -27,7 +27,7 @@ class mp3_packetizer_c: public q_c { private: - u_int64_t bytes_output, packetno; + int64_t bytes_output, packetno; unsigned long samples_per_sec; int channels; unsigned char *tempbuf, *packet_buffer; diff --git a/p_pcm.h b/p_pcm.h index 8e5c339d8..e3c72a419 100644 --- a/p_pcm.h +++ b/p_pcm.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: p_pcm.h,v 1.9 2003/04/11 11:21:10 mosu Exp $ + \version \$Id: p_pcm.h,v 1.10 2003/04/13 15:23:03 mosu Exp $ \brief class definition for the PCM output module \author Moritz Bunkus */ @@ -28,7 +28,7 @@ class pcm_packetizer_c: public q_c { private: int packetno; int bps, channels, bits_per_sample; - u_int64_t bytes_output, remaining_sync; + int64_t bytes_output, remaining_sync; unsigned long samples_per_sec; unsigned char *tempbuf; int tempbuf_size; diff --git a/p_video.cpp b/p_video.cpp index 7ce350eed..22e02ac2a 100644 --- a/p_video.cpp +++ b/p_video.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: p_video.cpp,v 1.16 2003/04/11 11:27:14 mosu Exp $ + \version \$Id: p_video.cpp,v 1.17 2003/04/13 15:23:03 mosu Exp $ \brief video output module \author Moritz Bunkus */ @@ -104,12 +104,12 @@ void video_packetizer_c::set_header() { int video_packetizer_c::process(unsigned char *buf, int size, int64_t old_timecode, int64_t flags) { - u_int64_t timecode; + int64_t timecode; int key, num_frames; num_frames = flags & VNUMFRAMES; if (old_timecode == -1) - timecode = (u_int64_t)(1000.0 * frames_output / fps); + timecode = (int64_t)(1000.0 * frames_output / fps); else timecode = old_timecode; diff --git a/p_video.h b/p_video.h index 66f3ac5eb..70b3333e5 100644 --- a/p_video.h +++ b/p_video.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: p_video.h,v 1.16 2003/04/11 11:27:32 mosu Exp $ + \version \$Id: p_video.h,v 1.17 2003/04/13 15:23:03 mosu Exp $ \brief class definition for the video output module \author Moritz Bunkus */ @@ -34,7 +34,7 @@ private: double fps; int width, height, bpp, packetno; int frames_output, avi_compat_mode; - u_int64_t last_id; + int64_t last_id; public: video_packetizer_c(double nfps, int nwidth, int nheight, int nbpp, diff --git a/p_vorbis.cpp b/p_vorbis.cpp index c56d59f06..e9ca7db2d 100644 --- a/p_vorbis.cpp +++ b/p_vorbis.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: p_vorbis.cpp,v 1.7 2003/04/11 11:29:01 mosu Exp $ + \version \$Id: p_vorbis.cpp,v 1.8 2003/04/13 15:23:03 mosu Exp $ \brief Vorbis packetizer \author Moritz Bunkus */ @@ -175,7 +175,7 @@ int vorbis_packetizer_c::process(unsigned char *data, int size, int64_t timecode, int64_t) { unsigned char zero[2]; ogg_packet op; - u_int64_t this_bs, samples_here, samples_needed; + int64_t this_bs, samples_here, samples_needed; // Recalculate the timecode if needed. if (timecode == -1) @@ -226,7 +226,7 @@ int vorbis_packetizer_c::process(unsigned char *data, int size, if (timecode < 0) return EMOREDATA; - add_packet(data, size, (u_int64_t)timecode); + add_packet(data, size, (int64_t)timecode); return EMOREDATA; } diff --git a/p_vorbis.h b/p_vorbis.h index a511de9b6..dd6824cb4 100644 --- a/p_vorbis.h +++ b/p_vorbis.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: p_vorbis.h,v 1.6 2003/04/11 11:29:15 mosu Exp $ + \version \$Id: p_vorbis.h,v 1.7 2003/04/13 15:23:03 mosu Exp $ \brief class definition for the Vorbis packetizer \author Moritz Bunkus */ @@ -34,7 +34,7 @@ class vorbis_packetizer_c: public q_c { private: - u_int64_t last_bs, samples; + int64_t last_bs, samples; int packetno; audio_sync_t async; vorbis_info vi; diff --git a/pr_generic.cpp b/pr_generic.cpp index eed15e3e3..e75e637bf 100644 --- a/pr_generic.cpp +++ b/pr_generic.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: pr_generic.cpp,v 1.10 2003/03/05 13:51:20 mosu Exp $ + \version \$Id: pr_generic.cpp,v 1.11 2003/04/13 15:23:03 mosu Exp $ \brief functions common for all readers/packetizers \author Moritz Bunkus */ @@ -122,7 +122,7 @@ void cluster_helper_c::add_packet(packet_t *packet) { walk_clusters(); } -u_int64_t cluster_helper_c::get_timecode() { +int64_t cluster_helper_c::get_timecode() { if (clusters == NULL) return 0; if (clusters[num_clusters - 1]->packets == NULL) @@ -187,7 +187,7 @@ int cluster_helper_c::render(IOCallback *out) { KaxCues dummy_cues; KaxCluster *cluster; int i; - u_int64_t cluster_timecode; + int64_t cluster_timecode; ch_contents_t *clstr; packet_t *pack, *bref_packet, *fref_packet; @@ -198,9 +198,15 @@ int cluster_helper_c::render(IOCallback *out) { clstr = clusters[num_clusters - 1]; cluster = clstr->cluster; cluster_timecode = get_timecode(); + if (verbose > 1) + fprintf(stdout, "cluster_helper_c::render: cluster_timecode %lld\n", + cluster_timecode); for (i = 0; i < clstr->num_packets; i++) { pack = clstr->packets[i]; + if (verbose > 1) + fprintf(stdout, " cluster_helper_c::render: pack->timestamp %lld\n", + pack->timestamp); pack->group = &cluster->GetNewBlock(); pack->data_buffer = new DataBuffer((binary *)pack->data, pack->length); @@ -245,7 +251,7 @@ int cluster_helper_c::render(IOCallback *out) { return 1; } -ch_contents_t *cluster_helper_c::find_packet_cluster(u_int64_t pid) { +ch_contents_t *cluster_helper_c::find_packet_cluster(int64_t pid) { int i, k; if (clusters == NULL) @@ -259,7 +265,7 @@ ch_contents_t *cluster_helper_c::find_packet_cluster(u_int64_t pid) { return NULL; } -packet_t *cluster_helper_c::find_packet(u_int64_t pid) { +packet_t *cluster_helper_c::find_packet(int64_t pid) { int i, k; if (clusters == NULL) @@ -367,7 +373,7 @@ int cluster_helper_c::free_clusters() { return 1; } -int cluster_helper_c::free_ref(u_int64_t pid, void *source) { +int cluster_helper_c::free_ref(int64_t pid, void *source) { int i, k; packet_t *p; diff --git a/pr_generic.h b/pr_generic.h index 5b4e814ff..03d313cea 100644 --- a/pr_generic.h +++ b/pr_generic.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: pr_generic.h,v 1.13 2003/04/11 11:29:28 mosu Exp $ + \version \$Id: pr_generic.h,v 1.14 2003/04/13 15:23:03 mosu Exp $ \brief class definition for the generic reader and packetizer \author Moritz Bunkus */ @@ -55,18 +55,18 @@ public: void add_cluster(KaxCluster *cluster); KaxCluster *get_cluster(); void add_packet(packet_t *packet); - u_int64_t get_timecode(); + int64_t get_timecode(); packet_t *get_packet(int num); int get_packet_count(); int render(IOCallback *out); - int free_ref(u_int64_t pid, void *source); + int free_ref(int64_t pid, void *source); int free_clusters(); int get_cluster_content_size(); private: int find_cluster(KaxCluster *cluster); - ch_contents_t *find_packet_cluster(u_int64_t pid); - packet_t *find_packet(u_int64_t pid); + ch_contents_t *find_packet_cluster(int64_t pid); + packet_t *find_packet(int64_t pid); void free_contents(ch_contents_t *clstr); void check_clusters(int num); }; @@ -109,7 +109,7 @@ typedef struct packet_t { KaxCluster *cluster; unsigned char *data; int length, superseeded; - u_int64_t timestamp, id, bref, fref; + int64_t timestamp, id, bref, fref; generic_packetizer_c *source; } packet_t; diff --git a/queue.cpp b/queue.cpp index 6171c1bb2..b1d8dd6d5 100644 --- a/queue.cpp +++ b/queue.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: queue.cpp,v 1.9 2003/03/05 13:51:20 mosu Exp $ + \version \$Id: queue.cpp,v 1.10 2003/04/13 15:23:03 mosu Exp $ \brief packet queueing class used by every packetizer \author Moritz Bunkus */ @@ -31,7 +31,7 @@ #include #endif -u_int64_t q_c::id = 1; +int64_t q_c::id = 1; q_c::q_c(track_info_t *nti) throw (error_c) : generic_packetizer_c(nti) { first = NULL; @@ -54,9 +54,9 @@ q_c::~q_c() { } } -u_int64_t q_c::add_packet(unsigned char *data, int length, - u_int64_t timestamp, u_int64_t bref, - u_int64_t fref) { +int64_t q_c::add_packet(unsigned char *data, int length, + int64_t timestamp, int64_t bref, + int64_t fref) { q_page_t *qpage; if (data == NULL) diff --git a/queue.h b/queue.h index 70b0ff297..31b120ffe 100644 --- a/queue.h +++ b/queue.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: queue.h,v 1.8 2003/03/05 13:51:20 mosu Exp $ + \version \$Id: queue.h,v 1.9 2003/04/13 15:23:03 mosu Exp $ \brief class definition for the queueing class \author Moritz Bunkus */ @@ -32,21 +32,21 @@ typedef struct q_page { class q_c: public generic_packetizer_c { private: - static u_int64_t id; - struct q_page *first, *current; + static int64_t id; + struct q_page *first, *current; public: q_c(track_info_t *nti) throw (error_c); virtual ~q_c(); - virtual u_int64_t add_packet(unsigned char *data, int lenth, - u_int64_t timestamp, u_int64_t bref = 0, - u_int64_t fref = 0); - virtual packet_t *get_packet(); - virtual int packet_available(); - virtual stamp_t get_smallest_timestamp(); + virtual int64_t add_packet(unsigned char *data, int lenth, + int64_t timestamp, int64_t bref = 0, + int64_t fref = 0); + virtual packet_t *get_packet(); + virtual int packet_available(); + virtual stamp_t get_smallest_timestamp(); - virtual long get_queued_bytes(); + virtual long get_queued_bytes(); }; #endif // __QUEUE_H diff --git a/r_ac3.cpp b/r_ac3.cpp index 30f9607e1..77bf7208e 100644 --- a/r_ac3.cpp +++ b/r_ac3.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_ac3.cpp,v 1.9 2003/04/11 11:30:18 mosu Exp $ + \version \$Id: r_ac3.cpp,v 1.10 2003/04/13 15:23:03 mosu Exp $ \brief AC3 demultiplexer module \author Moritz Bunkus */ @@ -37,7 +37,7 @@ extern "C" { #include #endif -int ac3_reader_c::probe_file(FILE *file, u_int64_t size) { +int ac3_reader_c::probe_file(FILE *file, int64_t size) { char buf[4096]; int pos; ac3_header_t ac3header; diff --git a/r_ac3.h b/r_ac3.h index 5a26eedd5..27121eeb4 100644 --- a/r_ac3.h +++ b/r_ac3.h @@ -13,7 +13,7 @@ /*! \file r_avi.h - \version \$Id: r_ac3.h,v 1.6 2003/03/05 13:51:20 mosu Exp $ + \version \$Id: r_ac3.h,v 1.7 2003/04/13 15:23:03 mosu Exp $ \brief class definitions for the AVI demultiplexer module \author Moritz Bunkus */ @@ -34,8 +34,7 @@ private: unsigned char *chunk; FILE *file; class ac3_packetizer_c *ac3packetizer; - u_int64_t bytes_processed; - u_int64_t size; + int64_t bytes_processed, size; public: ac3_reader_c(track_info_t *nti) throw (error_c); @@ -46,7 +45,7 @@ public: virtual int display_priority(); virtual void display_progress(); - static int probe_file(FILE *file, u_int64_t size); + static int probe_file(FILE *file, int64_t size); }; #endif // __R_AC3_H diff --git a/r_avi.cpp b/r_avi.cpp index fd9008c39..e0eb57c80 100644 --- a/r_avi.cpp +++ b/r_avi.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_avi.cpp,v 1.16 2003/04/11 11:36:18 mosu Exp $ + \version \$Id: r_avi.cpp,v 1.17 2003/04/13 15:23:03 mosu Exp $ \brief AVI demultiplexer module \author Moritz Bunkus */ @@ -40,7 +40,7 @@ extern "C" { #include #endif -int avi_reader_c::probe_file(FILE *file, u_int64_t size) { +int avi_reader_c::probe_file(FILE *file, int64_t size) { unsigned char data[12]; if (size < 12) @@ -64,7 +64,7 @@ int avi_reader_c::probe_file(FILE *file, u_int64_t size) { avi_reader_c::avi_reader_c(track_info_t *nti) throw (error_c): generic_reader_c(nti) { int fsize, i; - u_int64_t size; + int64_t size; FILE *f; int extract_video = 1; avi_demuxer_t *demuxer; diff --git a/r_avi.h b/r_avi.h index cc07c3d94..3573db0d9 100644 --- a/r_avi.h +++ b/r_avi.h @@ -13,7 +13,7 @@ /*! \file r_avi.h - \version \$Id: r_avi.h,v 1.10 2003/03/05 13:51:20 mosu Exp $ + \version \$Id: r_avi.h,v 1.11 2003/04/13 15:23:03 mosu Exp $ \brief class definitions for the AVI demultiplexer module \author Moritz Bunkus */ @@ -41,7 +41,7 @@ typedef struct avi_demuxer_t { int channels, bits_per_sample, samples_per_second; int aid; int eos; - u_int64_t bytes_processed; + int64_t bytes_processed; avi_demuxer_t *next; } avi_demuxer_t; @@ -68,7 +68,7 @@ public: virtual int display_priority(); virtual void display_progress(); - static int probe_file(FILE *file, u_int64_t size); + static int probe_file(FILE *file, int64_t size); private: virtual int add_audio_demuxer(avi_t *avi, int aid); diff --git a/r_matroska.cpp b/r_matroska.cpp index 233d396c2..b265dddcb 100644 --- a/r_matroska.cpp +++ b/r_matroska.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_matroska.cpp,v 1.1 2003/04/11 10:03:16 mosu Exp $ + \version \$Id: r_matroska.cpp,v 1.2 2003/04/13 15:23:03 mosu Exp $ \brief Matroska reader \author Moritz Bunkus */ @@ -67,7 +67,7 @@ using namespace LIBMATROSKA_NAMESPACE; * Probes a file by simply comparing the first four bytes to the EBML * head signature. */ -int mkv_reader_c::probe_file(FILE *file, u_int64_t size) { +int mkv_reader_c::probe_file(FILE *file, int64_t size) { unsigned char data[4]; if (size < 4) diff --git a/r_matroska.h b/r_matroska.h index ab86b8a95..b09e71c54 100644 --- a/r_matroska.h +++ b/r_matroska.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_matroska.h,v 1.1 2003/04/11 10:03:16 mosu Exp $ + \version \$Id: r_matroska.h,v 1.2 2003/04/13 15:23:03 mosu Exp $ \brief class definitions for the Matroska reader \author Moritz Bunkus */ @@ -63,7 +63,7 @@ typedef struct { unsigned char *headers[3]; u_int32_t header_sizes[3]; - u_int64_t units_processed; + int64_t units_processed; int ok; @@ -77,7 +77,7 @@ private: mkv_track_t **tracks; int num_tracks; - u_int64_t tc_scale; + int64_t tc_scale; u_int32_t cluster_tc; StdIOCallback *in; @@ -95,7 +95,7 @@ public: virtual int display_priority(); virtual void display_progress(); - static int probe_file(FILE *file, u_int64_t size); + static int probe_file(FILE *file, int64_t size); private: virtual int demuxing_requested(mkv_track_t *t); diff --git a/r_microdvd.cpp b/r_microdvd.cpp index d515df9d2..96903eecc 100644 --- a/r_microdvd.cpp +++ b/r_microdvd.cpp @@ -32,7 +32,7 @@ #include #endif -int microdvd_reader_c::probe_file(FILE *file, u_int64_t size) { +int microdvd_reader_c::probe_file(FILE *file, int64_t size) { char chunk[2048]; int i; diff --git a/r_microdvd.h b/r_microdvd.h index 73561cb48..31a1d9254 100644 --- a/r_microdvd.h +++ b/r_microdvd.h @@ -46,7 +46,7 @@ public: virtual int display_priority(); virtual void display_progress(); - static int probe_file(FILE *file, u_int64_t size); + static int probe_file(FILE *file, int64_t size); }; #endif // __R_MICRODVD_H diff --git a/r_mp3.cpp b/r_mp3.cpp index a1eb4df94..62aa93d71 100644 --- a/r_mp3.cpp +++ b/r_mp3.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_mp3.cpp,v 1.8 2003/04/11 11:37:41 mosu Exp $ + \version \$Id: r_mp3.cpp,v 1.9 2003/04/13 15:23:03 mosu Exp $ \brief MP3 reader module \author Moritz Bunkus */ @@ -33,7 +33,7 @@ #include #endif -int mp3_reader_c::probe_file(FILE *file, u_int64_t size) { +int mp3_reader_c::probe_file(FILE *file, int64_t size) { unsigned char buf[4096]; int pos; unsigned long header; diff --git a/r_mp3.h b/r_mp3.h index ce837856b..290bf6fe8 100644 --- a/r_mp3.h +++ b/r_mp3.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_mp3.h,v 1.7 2003/03/05 13:51:20 mosu Exp $ + \version \$Id: r_mp3.h,v 1.8 2003/04/13 15:23:03 mosu Exp $ \brief class definitions for the MP3 reader module \author Moritz Bunkus */ @@ -34,7 +34,7 @@ private: unsigned char *chunk; FILE *file; class mp3_packetizer_c *mp3packetizer; - u_int64_t bytes_processed, size; + int64_t bytes_processed, size; public: mp3_reader_c(track_info_t *nti) throw (error_c); @@ -46,7 +46,7 @@ public: virtual int display_priority(); virtual void display_progress(); - static int probe_file(FILE *file, u_int64_t size); + static int probe_file(FILE *file, int64_t size); }; #endif // __R_MP3_H diff --git a/r_ogm.cpp b/r_ogm.cpp index 25938f691..7ef733065 100644 --- a/r_ogm.cpp +++ b/r_ogm.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_ogm.cpp,v 1.11 2003/04/11 11:52:57 mosu Exp $ + \version \$Id: r_ogm.cpp,v 1.12 2003/04/13 15:23:03 mosu Exp $ \brief OGG media stream reader \author Moritz Bunkus */ @@ -52,7 +52,7 @@ extern "C" { // for BITMAPINFOHEADER /* * Probes a file by simply comparing the first four bytes to 'OggS'. */ -int ogm_reader_c::probe_file(FILE *file, u_int64_t size) { +int ogm_reader_c::probe_file(FILE *file, int64_t size) { unsigned char data[4]; if (size < 4) @@ -75,7 +75,7 @@ int ogm_reader_c::probe_file(FILE *file, u_int64_t size) { */ ogm_reader_c::ogm_reader_c(track_info_t *nti) throw (error_c): generic_reader_c(nti) { - u_int64_t size; + int64_t size; if ((file = fopen(ti->fname, "r")) == NULL) throw error_c("ogm_reader: Could not open source file."); diff --git a/r_ogm.h b/r_ogm.h index a169b4f8f..bb309b2fb 100644 --- a/r_ogm.h +++ b/r_ogm.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_ogm.h,v 1.9 2003/03/05 13:51:20 mosu Exp $ + \version \$Id: r_ogm.h,v 1.10 2003/04/13 15:23:03 mosu Exp $ \brief class definitions for the OGG media stream reader \author Moritz Bunkus */ @@ -71,7 +71,7 @@ public: virtual int display_priority(); virtual void display_progress(); - static int probe_file(FILE *file, u_int64_t size); + static int probe_file(FILE *file, int64_t size); private: virtual ogm_demuxer_t *find_demuxer(int serialno); diff --git a/r_srt.cpp b/r_srt.cpp index 304d136a8..bbbd21dea 100644 --- a/r_srt.cpp +++ b/r_srt.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_srt.cpp,v 1.4 2003/03/06 23:39:40 mosu Exp $ + \version \$Id: r_srt.cpp,v 1.5 2003/04/13 15:23:03 mosu Exp $ \brief Subripper subtitle reader \author Moritz Bunkus */ @@ -45,7 +45,7 @@ #define issrttimestamp(s) (istimestamp(s) && isarrow(s + 12) && \ istimestamp(s + 17)) -int srt_reader_c::probe_file(FILE *file, u_int64_t size) { +int srt_reader_c::probe_file(FILE *file, int64_t size) { char chunk[2048]; if (fseek(file, 0, SEEK_SET) != 0) diff --git a/r_srt.h b/r_srt.h index 5d91d2fec..35a4ef1f3 100644 --- a/r_srt.h +++ b/r_srt.h @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_srt.h,v 1.6 2003/03/06 23:39:40 mosu Exp $ + \version \$Id: r_srt.h,v 1.7 2003/04/13 15:23:03 mosu Exp $ \brief class definition for the Subripper subtitle reader \author Moritz Bunkus */ @@ -45,7 +45,7 @@ public: virtual int display_priority(); virtual void display_progress(); - static int probe_file(FILE *file, u_int64_t size); + static int probe_file(FILE *file, int64_t size); }; #endif // __R_SRT_H diff --git a/r_vobsub.cpp b/r_vobsub.cpp index e8103e13c..19986d461 100644 --- a/r_vobsub.cpp +++ b/r_vobsub.cpp @@ -57,7 +57,7 @@ iscommafileposstr(s + 23) && \ isfilepos(s + 34)) -int vobsub_reader_c::probe_file(FILE *file, u_int64_t size) { +int vobsub_reader_c::probe_file(FILE *file, int64_t size) { char chunk[2048]; if (fseek(file, 0, SEEK_SET) != 0) diff --git a/r_vobsub.h b/r_vobsub.h index d43382cd2..13f628b97 100644 --- a/r_vobsub.h +++ b/r_vobsub.h @@ -51,7 +51,7 @@ public: virtual int display_priority(); virtual void display_progress(); - static int probe_file(FILE *file, u_int64_t size); + static int probe_file(FILE *file, int64_t size); private: virtual void add_vobsub_packetizer(int width, int height, diff --git a/r_wav.cpp b/r_wav.cpp index c16816927..d8774f79a 100644 --- a/r_wav.cpp +++ b/r_wav.cpp @@ -13,7 +13,7 @@ /*! \file - \version \$Id: r_wav.cpp,v 1.7 2003/03/05 13:51:20 mosu Exp $ + \version \$Id: r_wav.cpp,v 1.8 2003/04/13 15:23:03 mosu Exp $ \brief MP3 reader module \author Moritz Bunkus */ @@ -37,7 +37,7 @@ extern "C" { #include #endif -int wav_reader_c::probe_file(FILE *file, u_int64_t size) { +int wav_reader_c::probe_file(FILE *file, int64_t size) { wave_header wheader; if (size < sizeof(wave_header)) return 0; @@ -57,7 +57,7 @@ int wav_reader_c::probe_file(FILE *file, u_int64_t size) { wav_reader_c::wav_reader_c(track_info_t *nti) throw (error_c): generic_reader_c(nti) { - u_int64_t size; + int64_t size; if ((file = fopen(ti->fname, "r")) == NULL) throw error_c("wav_reader: Could not open source file."); diff --git a/r_wav.h b/r_wav.h index 8ef19aa5a..a370d7249 100644 --- a/r_wav.h +++ b/r_wav.h @@ -14,7 +14,7 @@ /*! \file - \version \$Id: r_wav.h,v 1.6 2003/03/05 13:51:20 mosu Exp $ + \version \$Id: r_wav.h,v 1.7 2003/04/13 15:23:03 mosu Exp $ \brief class definitions for the WAV reader module \author Moritz Bunkus */ @@ -41,7 +41,7 @@ private: class pcm_packetizer_c *pcmpacketizer; int bps; struct wave_header wheader; - u_int64_t bytes_processed; + int64_t bytes_processed; public: wav_reader_c(track_info_t *nti) throw (error_c); @@ -53,7 +53,7 @@ public: virtual int display_priority(); virtual void display_progress(); - static int probe_file(FILE *file, u_int64_t size); + static int probe_file(FILE *file, int64_t size); }; #endif // __R_WAV_H