cosmetics: Fix typos

Patch by Mike Castle, dalgoda+mplayer gmail

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33575 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cehoyos 2011-06-10 08:31:00 +00:00 committed by Uoti Urpala
parent c6e4eb9f4b
commit 55d4f6528c
2 changed files with 5 additions and 5 deletions

View File

@ -377,7 +377,7 @@ struct demuxer *new_demuxers_demuxer(struct demuxer *vd, struct demuxer *ad,
struct demuxer *sd); struct demuxer *sd);
// AVI demuxer params: // AVI demuxer params:
extern int index_mode; // -1=untouched 0=don't use index 1=use (geneate) index extern int index_mode; // -1=untouched 0=don't use index 1=use (generate) index
extern char *index_file_save, *index_file_load; extern char *index_file_save, *index_file_load;
extern int force_ni; extern int force_ni;
extern int pts_from_bps; extern int pts_from_bps;

View File

@ -1341,7 +1341,7 @@ void vobsub_out_output(void *me, const unsigned char *packet,
m = s / 60; m = s / 60;
s -= m * 60; s -= m * 60;
ms = (s - (unsigned int) s) * 1000; ms = (s - (unsigned int) s) * 1000;
if (ms >= 1000) /* prevent overfolws or bad float stuff */ if (ms >= 1000) /* prevent overflows or bad float stuff */
ms = 0; ms = 0;
if (h != last_h || m != last_m || (unsigned int) s != last_s || ms != last_ms) { if (h != last_h || m != last_m || (unsigned int) s != last_s || ms != last_ms) {
fprintf(vob->fidx, "timestamp: %02u:%02u:%02u:%03u, filepos: %09lx\n", fprintf(vob->fidx, "timestamp: %02u:%02u:%02u:%03u, filepos: %09lx\n",
@ -1382,13 +1382,13 @@ void vobsub_out_output(void *me, const unsigned char *packet,
datalen += 1; /* AID */ datalen += 1; /* AID */
pad_len = 2048 - (p - buffer) - 4 /* MPEG ID */ - 2 /* payload len */ - datalen; pad_len = 2048 - (p - buffer) - 4 /* MPEG ID */ - 2 /* payload len */ - datalen;
/* XXX - Go figure what should go here! In any case the /* XXX - Go figure what should go here! In any case the
packet has to be completly filled. If I can fill it packet has to be completely filled. If I can fill it
with padding (0x000001be) latter I'll do that. But if with padding (0x000001be) latter I'll do that. But if
there is only room for 6 bytes then I can not write a there is only room for 6 bytes then I can not write a
padding packet. So I add some padding in the PTS padding packet. So I add some padding in the PTS
field. This looks like a dirty kludge. Oh well... */ field. This looks like a dirty kludge. Oh well... */
if (pad_len < 0) { if (pad_len < 0) {
/* Packet is too big. Let's try ommiting the PTS field */ /* Packet is too big. Let's try omitting the PTS field */
datalen -= pts_len; datalen -= pts_len;
pts_len = 0; pts_len = 0;
pad_len = 0; pad_len = 0;
@ -1439,7 +1439,7 @@ void vobsub_out_output(void *me, const unsigned char *packet,
perror("ERROR: vobsub blank padding write failed"); perror("ERROR: vobsub blank padding write failed");
} else if (remain < 0) } else if (remain < 0)
fprintf(stderr, fprintf(stderr,
"\nERROR: wrong thing happenned...\n" "\nERROR: wrong thing happened...\n"
" I wrote a %i data bytes spu packet and that's too long\n", len); " I wrote a %i data bytes spu packet and that's too long\n", len);
} }
} }