make fast speeds conditional

This commit is contained in:
marschap
2006-09-02 18:54:54 +00:00
parent 9be6414607
commit 4d85f1b412
+34 -12
View File
@@ -68,18 +68,40 @@ unsigned int bitrate_conversion[][2] = {
{ 57600, B57600 },
{ 115200, B115200 },
{ 230400, B230400 },
{ 460800, B460800 },
{ 500000, B500000 },
{ 576000, B576000 },
{ 921600, B921600 },
{ 1000000, B1000000 },
{ 1152000, B1152000 },
{ 1500000, B1500000 },
{ 2000000, B2000000 },
{ 2500000, B2500000 },
{ 3000000, B3000000 },
{ 3500000, B3500000 },
{ 4000000, B4000000 }
{ 460800, B460800 }
#if defined(B500000)
, { 500000, B500000 }
#endif
#if defined(B576000)
, { 576000, B576000 }
#endif
#if defined(B921600)
, { 921600, B921600 }
#endif
#if defined(B1000000)
, { 1000000, B1000000 }
#endif
#if defined(B1152000)
, { 1152000, B1152000 }
#endif
#if defined(B1500000)
, { 1500000, B1500000 }
#endif
#if defined(B2000000)
, { 2000000, B2000000 }
#endif
#if defined(B2500000)
, { 2500000, B2500000 }
#endif
#if defined(B3000000)
, { 3000000, B3000000 }
#endif
#if defined(B3500000)
, { 3500000, B3500000 }
#endif
#if defined(B4000000)
, { 4000000, B4000000 }
#endif
};
int convert_bitrate(unsigned int conf_bitrate, size_t *bitrate) {