comparison stream/stream_dvd.c @ 25047:e98388418c19

Some more cosmetics
author reimar
date Sat, 17 Nov 2007 18:52:42 +0000
parents 6f92f65d00e9
children 225a382a3c2e
comparison
equal deleted inserted replaced
25046:6f92f65d00e9 25047:e98388418c19
93 cmd[10] = sizeof(buffer); 93 cmd[10] = sizeof(buffer);
94 94
95 memset(buffer, 0, sizeof(buffer)); 95 memset(buffer, 0, sizeof(buffer));
96 /* first sector 0, last sector 0xffffffff */ 96 /* first sector 0, last sector 0xffffffff */
97 AV_WB32(buffer + 8, 0xffffffff); 97 AV_WB32(buffer + 8, 0xffffffff);
98
99 if (speed == -1) 98 if (speed == -1)
100 buffer[0] = 4; /* restore default */ 99 buffer[0] = 4; /* restore default */
101 else { 100 else {
102 /* <speed> kilobyte */ 101 /* <speed> kilobyte */
103 AV_WB32(buffer + 12, speed); 102 AV_WB32(buffer + 12, speed);
104 AV_WB32(buffer + 20, speed); 103 AV_WB32(buffer + 20, speed);
105 } 104 }
106
107 /* 1 second */ 105 /* 1 second */
108 AV_WB16(buffer + 18, 1000); 106 AV_WB16(buffer + 18, 1000);
109 AV_WB16(buffer + 26, 1000); 107 AV_WB16(buffer + 26, 1000);
110 108
111 fd = open(device, O_RDWR | O_NONBLOCK); 109 fd = open(device, O_RDWR | O_NONBLOCK);