This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Removed whitespaces at the end of the line.

  • Loading branch information...
mbunkus committed May 20, 2003
1 parent cc4da9a commit c1f3e862f5cae582e86636b58c816211a9efca65
Showing with 479 additions and 479 deletions.
  1. +8 −8 ac3_common.cpp
  2. +3 −3 cluster_helper.cpp
  3. +13 −13 common.h
  4. +55 −55 dts_common.cpp
  5. +30 −30 dts_common.h
  6. +5 −5 install-sh
  7. +2 −2 iso639.cpp
  8. +12 −12 mkvinfo.cpp
  9. +21 −21 mkvmerge.cpp
  10. +3 −3 mp3_common.cpp
  11. +6 −6 ogmstreams.h
  12. +13 −13 p_aac.cpp
  13. +3 −3 p_aac.h
  14. +13 −13 p_ac3.cpp
  15. +3 −3 p_ac3.h
  16. +27 −27 p_dts.cpp
  17. +7 −7 p_dts.h
  18. +13 −13 p_mp3.cpp
  19. +2 −2 p_mp3.h
  20. +3 −3 p_pcm.cpp
  21. +4 −4 p_pcm.h
  22. +2 −2 p_textsubs.h
  23. +2 −2 p_video.cpp
  24. +3 −3 p_video.h
  25. +5 −5 p_vorbis.cpp
  26. +2 −2 p_vorbis.h
  27. +2 −2 pr_generic.cpp
  28. +2 −2 pr_generic.h
  29. +7 −7 r_aac.cpp
  30. +2 −2 r_aac.h
  31. +8 −8 r_ac3.cpp
  32. +2 −2 r_ac3.h
  33. +18 −18 r_avi.cpp
  34. +3 −3 r_avi.h
  35. +12 −12 r_dts.cpp
  36. +2 −2 r_dts.h
  37. +32 −32 r_matroska.cpp
  38. +5 −5 r_matroska.h
  39. +5 −5 r_microdvd.cpp
  40. +4 −4 r_microdvd.h
  41. +7 −7 r_mp3.cpp
  42. +2 −2 r_mp3.h
  43. +33 −33 r_ogm.cpp
  44. +4 −4 r_ogm.h
  45. +6 −6 r_srt.cpp
  46. +3 −3 r_srt.h
  47. +10 −10 r_vobsub.cpp
  48. +2 −2 r_vobsub.h
  49. +29 −29 r_wav.cpp
  50. +3 −3 r_wav.h
  51. +14 −14 subtitles.cpp
  52. +2 −2 subtitles.h
View
@@ -13,7 +13,7 @@
/*!
\file
- \version \$Id: ac3_common.cpp,v 1.4 2003/05/18 20:57:07 mosu Exp $
+ \version \$Id: ac3_common.cpp,v 1.5 2003/05/20 06:30:24 mosu Exp $
\brief helper function for AC3 data
\author Moritz Bunkus <moritz@bunkus.org>
*/
@@ -25,7 +25,7 @@
int find_ac3_header(unsigned char *buf, int size, ac3_header_t *ac3_header) {
static int rate[] = { 32, 40, 48, 56, 64, 80, 96, 112, 128, 160,
192, 224, 256, 320, 384, 448, 512, 576, 640};
- static unsigned char lfeon[8] = {0x10, 0x10, 0x04, 0x04, 0x04, 0x01,
+ static unsigned char lfeon[8] = {0x10, 0x10, 0x04, 0x04, 0x04, 0x01,
0x04, 0x01};
static unsigned char halfrate[12] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3};
ac3_header_t header;
@@ -66,18 +66,18 @@ int find_ac3_header(unsigned char *buf, int size, ac3_header_t *ac3_header) {
return -1;
}
switch(header.flags & A52_CHANNEL_MASK) {
- case A52_MONO:
+ case A52_MONO:
header.channels=1;
break;
- case A52_CHANNEL:
+ case A52_CHANNEL:
case A52_STEREO:
case A52_CHANNEL1:
case A52_CHANNEL2:
- case A52_DOLBY:
+ case A52_DOLBY:
header.channels=2;
break;
case A52_2F1R:
- case A52_3F:
+ case A52_3F:
header.channels=3;
break;
case A52_3F1R:
@@ -91,9 +91,9 @@ int find_ac3_header(unsigned char *buf, int size, ac3_header_t *ac3_header) {
if (header.flags & A52_LFE)
header.channels++;
memcpy(ac3_header, &header, sizeof(ac3_header_t));
-
+
return i;
}
-
+
return -1;
}
View
@@ -13,7 +13,7 @@
/*!
\file
- \version \$Id: cluster_helper.cpp,v 1.17 2003/05/18 20:57:07 mosu Exp $
+ \version \$Id: cluster_helper.cpp,v 1.18 2003/05/20 06:30:24 mosu Exp $
\brief cluster helper
\author Moritz Bunkus <moritz@bunkus.org>
*/
@@ -203,13 +203,13 @@ int cluster_helper_c::render(IOCallback *out) {
else if (write_cues) {
// Update the cues (index table) either if cue entries for
// I frames were requested and this is an I frame...
- if ((((generic_packetizer_c *)pack->source)->get_cue_creation() ==
+ if ((((generic_packetizer_c *)pack->source)->get_cue_creation() ==
CUES_IFRAMES) && (pack->bref == -1)) {
kax_cues->AddBlockGroup(*new_group);
cue_writing_requested = 1;
}
// ... or if the user requested entries for all frames.
- else if (((generic_packetizer_c *)pack->source)->get_cue_creation() ==
+ else if (((generic_packetizer_c *)pack->source)->get_cue_creation() ==
CUES_ALL) {
kax_cues->AddBlockGroup(*new_group);
cue_writing_requested = 1;
View
@@ -13,7 +13,7 @@
/*!
\file
- \version \$Id: common.h,v 1.26 2003/05/19 18:24:52 mosu Exp $
+ \version \$Id: common.h,v 1.27 2003/05/20 06:30:24 mosu Exp $
\brief definitions used in all programs, helper functions
\author Moritz Bunkus <moritz@bunkus.org>
*/
@@ -55,7 +55,7 @@
#define TYPEUNKNOWN 0
#define TYPEOGM 1
#define TYPEAVI 2
-#define TYPEWAV 3
+#define TYPEWAV 3
#define TYPESRT 4
#define TYPEMP3 5
#define TYPEAC3 6
@@ -113,47 +113,47 @@ class bit_cursor_c {
const unsigned char *byte_position;
const unsigned char *start_of_data;
unsigned int bits_valid;
-
+
bool out_of_data;
-public:
+public:
bit_cursor_c(const unsigned char *data, unsigned int len):
end_of_data(data+len), byte_position(data), start_of_data(data),
bits_valid(8), out_of_data(false) {
if (byte_position >= end_of_data)
out_of_data = true;
}
-
+
bool get_bits(unsigned int n, unsigned long &r) {
// returns true if less bits are available than asked for
r = 0;
-
+
while (n > 0) {
if (byte_position >= end_of_data) {
out_of_data = true;
return true;
}
-
+
unsigned int b = 8; // number of bits to extract from the current byte
if (b > n)
b = n;
if (b > bits_valid)
b = bits_valid;
-
+
unsigned int rshift = bits_valid-b;
-
+
r <<= b;
r |= ((*byte_position) >> rshift) & (0xff >> (8-b));
-
+
bits_valid -= b;
if (bits_valid == 0) {
bits_valid = 8;
byte_position += 1;
}
-
+
n -= b;
}
-
+
return false;
}
@@ -190,7 +190,7 @@ class bit_cursor_c {
int get_bit_position() {
return byte_position - start_of_data + 8 - bits_valid;
- }
+ }
};
#endif // __COMMON_H
Oops, something went wrong.

0 comments on commit c1f3e86

Please sign in to comment.