1bdc5ad345
- Support CC/CFLAGS properly PR: 16674 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
--- multplex.c.orig Tue Jun 6 21:16:52 1995
|
|
+++ multplex.c Fri Feb 11 09:52:17 2000
|
|
@@ -129,21 +129,28 @@
|
|
picture_start = TRUE;
|
|
}
|
|
|
|
+#ifdef ASK_FOR_PARAMS
|
|
printf("\nMerging elementary streams to MPEG/SYSTEMS multiplexed stream.\n");
|
|
printf("\n+------------------ MPEG/SYSTEMS INFORMATION -----------------+\n");
|
|
-
|
|
+
|
|
do
|
|
+
|
|
{
|
|
printf ("\nsector size (CD-ROM 2324 bytes) : ");
|
|
scanf ("%ld", §or_size);
|
|
} while (sector_size>MAX_SECTOR_SIZE);
|
|
-
|
|
printf ("packs to packets ratio 1 : ");
|
|
scanf ("%ld", &packets_per_pack);
|
|
printf ("\nSTD video buffer in kB (CSPS: max 46 kB) : ");
|
|
scanf ("%ld", &video_buffer_size);
|
|
printf ("STD audio buffer in kB (CSPS: max 4 kB) : ");
|
|
scanf ("%ld", &audio_buffer_size);
|
|
+#else
|
|
+ sector_size=2324;
|
|
+ packets_per_pack=1;
|
|
+ video_buffer_size=46;
|
|
+ audio_buffer_size=4;
|
|
+#endif
|
|
|
|
write_pack = packets_per_pack;
|
|
video_buffer_size *= 1024;
|
|
@@ -197,6 +204,7 @@
|
|
(double)(packets_per_pack-1.))) / (double)(packets_per_pack) );
|
|
data_rate = ceil(dmux_rate/50.)*50;
|
|
|
|
+#ifdef ASK_FOR_PARAMS
|
|
printf ("\ncomputed multiplexed stream data rate : %7.3f\n",dmux_rate);
|
|
printf ("target data rate (e.g. %6u) : ",data_rate);
|
|
scanf ("%lf", &dmux_rate);
|
|
@@ -206,12 +214,22 @@
|
|
scanf ("%u", &video_delay_ms);
|
|
printf ("audio stream startup offset (ms) : ");
|
|
scanf ("%u", &audio_delay_ms);
|
|
+#else
|
|
+ dmux_rate=data_rate;
|
|
+ sectors_delay=0;
|
|
+ video_delay_ms=0;
|
|
+ audio_delay_ms=0;
|
|
+#endif
|
|
|
|
video_delay = (double)video_delay_ms*(double)(CLOCKS/1000);
|
|
audio_delay = (double)audio_delay_ms*(double)(CLOCKS/1000);
|
|
|
|
+#ifdef ASK_FOR_PARAMS
|
|
verbose=ask_verbose();
|
|
printf ("\n");
|
|
+#else
|
|
+ verbose=1;
|
|
+#endif
|
|
|
|
#ifdef TIMER
|
|
gettimeofday (&tp_global_start,NULL);
|