1161
1184
const int head2_4[] = {0x4f,0x67,0x67,0x53,0,0x00,
1162
1185
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
1163
1186
0x01,0x02,0x03,0x04,1,0,0,0,
1164
0x54,0x05,0x51,0xc8,
1166
255,255,255,255,255,255,255,255,
1167
255,255,255,255,255,255,255,255,255};
1187
0xf8,0x3c,0x19,0x79,
1189
255,255,255,255,255,255,255,255,
1190
255,255,255,255,255,255,255,255,
1191
255,255,255,255,255,255,255,255,
1192
255,255,255,255,255,255,255,255,
1193
255,255,255,255,255,255,255,255,
1194
255,255,255,255,255,255,255,255,
1195
255,255,255,255,255,255,255,255,
1196
255,255,255,255,255,255,255,255,
1197
255,255,255,255,255,255,255,255,
1198
255,255,255,255,255,255,255,255,
1199
255,255,255,255,255,255,255,255,
1200
255,255,255,255,255,255,255,255,
1201
255,255,255,255,255,255,255,255,
1202
255,255,255,255,255,255,255,255,
1203
255,255,255,255,255,255,255,255,
1204
255,255,255,255,255,255,255,255,
1205
255,255,255,255,255,255,255,255,
1206
255,255,255,255,255,255,255,255,
1207
255,255,255,255,255,255,255,255,
1208
255,255,255,255,255,255,255,255,
1209
255,255,255,255,255,255,255,255,
1210
255,255,255,255,255,255,255,255,
1211
255,255,255,255,255,255,255,255,
1212
255,255,255,255,255,255,255,255,
1213
255,255,255,255,255,255,255,255,
1214
255,255,255,255,255,255,255,255,
1215
255,255,255,255,255,255,255,255,
1216
255,255,255,255,255,255,255,255,
1217
255,255,255,255,255,255,255,255,
1218
255,255,255,255,255,255,255,255,
1219
255,255,255,255,255,255,255,255,
1220
255,255,255,255,255,255,255};
1169
1222
const int head3_4[] = {0x4f,0x67,0x67,0x53,0,0x05,
1170
1223
0x07,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,
1171
1224
0x01,0x02,0x03,0x04,2,0,0,0,
1172
0xc8,0xc3,0xcb,0xed,
1225
0x38,0xe6,0xb6,0x28,
1227
255,220,255,4,255,0};
1230
/* spill expansion test */
1231
const int head1_4b[] = {0x4f,0x67,0x67,0x53,0,0x02,
1232
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
1233
0x01,0x02,0x03,0x04,0,0,0,0,
1234
0xff,0x7b,0x23,0x17,
1238
const int head2_4b[] = {0x4f,0x67,0x67,0x53,0,0x00,
1239
0x07,0x10,0x00,0x00,0x00,0x00,0x00,0x00,
1240
0x01,0x02,0x03,0x04,1,0,0,0,
1241
0xce,0x8f,0x17,0x1a,
1243
255,255,255,255,255,255,255,255,
1244
255,255,255,255,255,255,255,255,255,10,255,4,255,0,0};
1247
const int head3_4b[] = {0x4f,0x67,0x67,0x53,0,0x04,
1248
0x07,0x14,0x00,0x00,0x00,0x00,0x00,0x00,
1249
0x01,0x02,0x03,0x04,2,0,0,0,
1250
0x9b,0xb2,0x50,0xa1,
1177
1254
/* page with the 255 segment limit */
1178
1255
const int head1_5[] = {0x4f,0x67,0x67,0x53,0,0x02,
1239
1316
const int head2_6[] = {0x4f,0x67,0x67,0x53,0,0x00,
1240
1317
0x07,0x04,0x00,0x00,0x00,0x00,0x00,0x00,
1241
1318
0x01,0x02,0x03,0x04,1,0,0,0,
1242
0x3c,0xd9,0x4d,0x3f,
1244
100,255,255,255,255,255,255,255,255,
1245
255,255,255,255,255,255,255,255};
1319
0x68,0x22,0x7c,0x3d,
1322
255,255,255,255,255,255,255,255,
1323
255,255,255,255,255,255,255,255,
1324
255,255,255,255,255,255,255,255,
1325
255,255,255,255,255,255,255,255,
1326
255,255,255,255,255,255,255,255,
1327
255,255,255,255,255,255,255,255,
1328
255,255,255,255,255,255,255,255,
1329
255,255,255,255,255,255,255,255,
1330
255,255,255,255,255,255,255,255,
1331
255,255,255,255,255,255,255,255,
1332
255,255,255,255,255,255,255,255,
1333
255,255,255,255,255,255,255,255,
1334
255,255,255,255,255,255,255,255,
1335
255,255,255,255,255,255,255,255,
1336
255,255,255,255,255,255,255,255,
1337
255,255,255,255,255,255,255,255,
1338
255,255,255,255,255,255,255,255,
1339
255,255,255,255,255,255,255,255,
1340
255,255,255,255,255,255,255,255,
1341
255,255,255,255,255,255,255,255,
1342
255,255,255,255,255,255,255,255,
1343
255,255,255,255,255,255,255,255,
1344
255,255,255,255,255,255,255,255,
1345
255,255,255,255,255,255,255,255,
1346
255,255,255,255,255,255,255,255,
1347
255,255,255,255,255,255,255,255,
1348
255,255,255,255,255,255,255,255,
1349
255,255,255,255,255,255,255,255,
1350
255,255,255,255,255,255,255,255,
1351
255,255,255,255,255,255,255,255,
1352
255,255,255,255,255,255,255,255,
1353
255,255,255,255,255,255};
1247
1355
const int head3_6[] = {0x4f,0x67,0x67,0x53,0,0x01,
1248
1356
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
1249
1357
0x01,0x02,0x03,0x04,2,0,0,0,
1250
0x01,0xd2,0xe5,0xe5,
1252
255,255,255,255,255,255,255,255,
1253
255,255,255,255,255,255,255,255,255};
1358
0xf4,0x87,0xba,0xf3,
1360
255,255,255,255,255,255,255,255,
1361
255,255,255,255,255,255,255,255,
1362
255,255,255,255,255,255,255,255,
1363
255,255,255,255,255,255,255,255,
1364
255,255,255,255,255,255,255,255,
1365
255,255,255,255,255,255,255,255,
1366
255,255,255,255,255,255,255,255,
1367
255,255,255,255,255,255,255,255,
1368
255,255,255,255,255,255,255,255,
1369
255,255,255,255,255,255,255,255,
1370
255,255,255,255,255,255,255,255,
1371
255,255,255,255,255,255,255,255,
1372
255,255,255,255,255,255,255,255,
1373
255,255,255,255,255,255,255,255,
1374
255,255,255,255,255,255,255,255,
1375
255,255,255,255,255,255,255,255,
1376
255,255,255,255,255,255,255,255,
1377
255,255,255,255,255,255,255,255,
1378
255,255,255,255,255,255,255,255,
1379
255,255,255,255,255,255,255,255,
1380
255,255,255,255,255,255,255,255,
1381
255,255,255,255,255,255,255,255,
1382
255,255,255,255,255,255,255,255,
1383
255,255,255,255,255,255,255,255,
1384
255,255,255,255,255,255,255,255,
1385
255,255,255,255,255,255,255,255,
1386
255,255,255,255,255,255,255,255,
1387
255,255,255,255,255,255,255,255,
1388
255,255,255,255,255,255,255,255,
1389
255,255,255,255,255,255,255,255,
1390
255,255,255,255,255,255,255,255,
1391
255,255,255,255,255,255,255};
1255
1393
const int head4_6[] = {0x4f,0x67,0x67,0x53,0,0x05,
1256
1394
0x07,0x10,0x00,0x00,0x00,0x00,0x00,0x00,
1257
1395
0x01,0x02,0x03,0x04,3,0,0,0,
1258
0xef,0xdd,0x88,0xde,
1260
255,255,75,255,4,255,0};
1396
0xf7,0x2f,0x6c,0x60,
1262
1400
/* packet that overspans over an entire page */
1263
1401
const int head1_7[] = {0x4f,0x67,0x67,0x53,0,0x02,
1270
1408
const int head2_7[] = {0x4f,0x67,0x67,0x53,0,0x00,
1271
1409
0x07,0x04,0x00,0x00,0x00,0x00,0x00,0x00,
1272
1410
0x01,0x02,0x03,0x04,1,0,0,0,
1273
0x3c,0xd9,0x4d,0x3f,
1275
100,255,255,255,255,255,255,255,255,
1276
255,255,255,255,255,255,255,255};
1411
0x68,0x22,0x7c,0x3d,
1414
255,255,255,255,255,255,255,255,
1415
255,255,255,255,255,255,255,255,
1416
255,255,255,255,255,255,255,255,
1417
255,255,255,255,255,255,255,255,
1418
255,255,255,255,255,255,255,255,
1419
255,255,255,255,255,255,255,255,
1420
255,255,255,255,255,255,255,255,
1421
255,255,255,255,255,255,255,255,
1422
255,255,255,255,255,255,255,255,
1423
255,255,255,255,255,255,255,255,
1424
255,255,255,255,255,255,255,255,
1425
255,255,255,255,255,255,255,255,
1426
255,255,255,255,255,255,255,255,
1427
255,255,255,255,255,255,255,255,
1428
255,255,255,255,255,255,255,255,
1429
255,255,255,255,255,255,255,255,
1430
255,255,255,255,255,255,255,255,
1431
255,255,255,255,255,255,255,255,
1432
255,255,255,255,255,255,255,255,
1433
255,255,255,255,255,255,255,255,
1434
255,255,255,255,255,255,255,255,
1435
255,255,255,255,255,255,255,255,
1436
255,255,255,255,255,255,255,255,
1437
255,255,255,255,255,255,255,255,
1438
255,255,255,255,255,255,255,255,
1439
255,255,255,255,255,255,255,255,
1440
255,255,255,255,255,255,255,255,
1441
255,255,255,255,255,255,255,255,
1442
255,255,255,255,255,255,255,255,
1443
255,255,255,255,255,255,255,255,
1444
255,255,255,255,255,255,255,255,
1445
255,255,255,255,255,255};
1278
1447
const int head3_7[] = {0x4f,0x67,0x67,0x53,0,0x05,
1279
1448
0x07,0x08,0x00,0x00,0x00,0x00,0x00,0x00,
1280
1449
0x01,0x02,0x03,0x04,2,0,0,0,
1281
1450
0xd4,0xe0,0x60,0xe5,
1284
void test_pack(const int *pl, const int **headers, int byteskip,
1454
void test_pack(const int *pl, const int **headers, int byteskip,
1285
1455
int pageskip, int packetskip){
1286
1456
unsigned char *data=_ogg_malloc(1024*1024); /* for scripted test cases only */