Revision 94c12d45

View differences:

libavformat/mxf.c
264 264
                return -1;
265 265
            mxf->essence_containers_uls = av_malloc(mxf->essence_containers_uls_count * sizeof(UID));
266 266
            url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
267
            get_buffer(pb, mxf->essence_containers_uls, mxf->essence_containers_uls_count * sizeof(UID));
267
            get_buffer(pb, (uint8_t *)mxf->essence_containers_uls, mxf->essence_containers_uls_count * sizeof(UID));
268 268
            break;
269 269
        default:
270 270
            url_fskip(pb, size);
......
291 291
                return -1;
292 292
            mxf->packages_refs = av_malloc(mxf->packages_count * sizeof(UID));
293 293
            url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
294
            get_buffer(pb, mxf->packages_refs, mxf->packages_count * sizeof(UID));
294
            get_buffer(pb, (uint8_t *)mxf->packages_refs, mxf->packages_count * sizeof(UID));
295 295
            break;
296 296
        case 0x1902:
297 297
            mxf->essence_container_data_sets_count = get_be32(pb);
......
299 299
                return -1;
300 300
            mxf->essence_container_data_sets_refs = av_malloc(mxf->essence_container_data_sets_count * sizeof(UID));
301 301
            url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
302
            get_buffer(pb, mxf->essence_container_data_sets_refs, mxf->essence_container_data_sets_count * sizeof(UID));
302
            get_buffer(pb, (uint8_t *)mxf->essence_container_data_sets_refs, mxf->essence_container_data_sets_count * sizeof(UID));
303 303
            break;
304 304
        default:
305 305
            url_fskip(pb, size);
......
369 369
                return -1;
370 370
            package->tracks_refs = av_malloc(package->tracks_count * sizeof(UID));
371 371
            url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
372
            get_buffer(pb, package->tracks_refs, package->tracks_count * sizeof(UID));
372
            get_buffer(pb, (uint8_t *)package->tracks_refs, package->tracks_count * sizeof(UID));
373 373
            break;
374 374
        default:
375 375
            url_fskip(pb, size);
......
444 444
                return -1;
445 445
            sequence->structural_components_refs = av_malloc(sequence->structural_components_count * sizeof(UID));
446 446
            url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
447
            get_buffer(pb, sequence->structural_components_refs, sequence->structural_components_count * sizeof(UID));
447
            get_buffer(pb, (uint8_t *)sequence->structural_components_refs, sequence->structural_components_count * sizeof(UID));
448 448
            break;
449 449
        default:
450 450
            url_fskip(pb, size);
......
476 476
                return -1;
477 477
            package->tracks_refs = av_malloc(package->tracks_count * sizeof(UID));
478 478
            url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
479
            get_buffer(pb, package->tracks_refs, package->tracks_count * sizeof(UID));
479
            get_buffer(pb, (uint8_t *)package->tracks_refs, package->tracks_count * sizeof(UID));
480 480
            break;
481 481
        case 0x4401:
482 482
            /* UMID, only get last 16 bytes */
......
516 516
                return -1;
517 517
            descriptor->sub_descriptors_refs = av_malloc(descriptor->sub_descriptors_count * sizeof(UID));
518 518
            url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
519
            get_buffer(pb, descriptor->sub_descriptors_refs, descriptor->sub_descriptors_count * sizeof(UID));
519
            get_buffer(pb, (uint8_t *)descriptor->sub_descriptors_refs, descriptor->sub_descriptors_count * sizeof(UID));
520 520
            break;
521 521
        default:
522 522
            url_fskip(pb, size);

Also available in: Unified diff