changeset 1339:f54119845d46 libavformat

shut up gcc about incompatible pointer type
author bcoudurier
date Fri, 29 Sep 2006 10:38:27 +0000
parents 531c75b73254
children 79f90a950fe1
files mxf.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mxf.c	Fri Sep 29 10:30:52 2006 +0000
+++ b/mxf.c	Fri Sep 29 10:38:27 2006 +0000
@@ -264,7 +264,7 @@
                 return -1;
             mxf->essence_containers_uls = av_malloc(mxf->essence_containers_uls_count * sizeof(UID));
             url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
-            get_buffer(pb, mxf->essence_containers_uls, mxf->essence_containers_uls_count * sizeof(UID));
+            get_buffer(pb, (uint8_t *)mxf->essence_containers_uls, mxf->essence_containers_uls_count * sizeof(UID));
             break;
         default:
             url_fskip(pb, size);
@@ -291,7 +291,7 @@
                 return -1;
             mxf->packages_refs = av_malloc(mxf->packages_count * sizeof(UID));
             url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
-            get_buffer(pb, mxf->packages_refs, mxf->packages_count * sizeof(UID));
+            get_buffer(pb, (uint8_t *)mxf->packages_refs, mxf->packages_count * sizeof(UID));
             break;
         case 0x1902:
             mxf->essence_container_data_sets_count = get_be32(pb);
@@ -299,7 +299,7 @@
                 return -1;
             mxf->essence_container_data_sets_refs = av_malloc(mxf->essence_container_data_sets_count * sizeof(UID));
             url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
-            get_buffer(pb, mxf->essence_container_data_sets_refs, mxf->essence_container_data_sets_count * sizeof(UID));
+            get_buffer(pb, (uint8_t *)mxf->essence_container_data_sets_refs, mxf->essence_container_data_sets_count * sizeof(UID));
             break;
         default:
             url_fskip(pb, size);
@@ -369,7 +369,7 @@
                 return -1;
             package->tracks_refs = av_malloc(package->tracks_count * sizeof(UID));
             url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
-            get_buffer(pb, package->tracks_refs, package->tracks_count * sizeof(UID));
+            get_buffer(pb, (uint8_t *)package->tracks_refs, package->tracks_count * sizeof(UID));
             break;
         default:
             url_fskip(pb, size);
@@ -444,7 +444,7 @@
                 return -1;
             sequence->structural_components_refs = av_malloc(sequence->structural_components_count * sizeof(UID));
             url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
-            get_buffer(pb, sequence->structural_components_refs, sequence->structural_components_count * sizeof(UID));
+            get_buffer(pb, (uint8_t *)sequence->structural_components_refs, sequence->structural_components_count * sizeof(UID));
             break;
         default:
             url_fskip(pb, size);
@@ -476,7 +476,7 @@
                 return -1;
             package->tracks_refs = av_malloc(package->tracks_count * sizeof(UID));
             url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
-            get_buffer(pb, package->tracks_refs, package->tracks_count * sizeof(UID));
+            get_buffer(pb, (uint8_t *)package->tracks_refs, package->tracks_count * sizeof(UID));
             break;
         case 0x4401:
             /* UMID, only get last 16 bytes */
@@ -516,7 +516,7 @@
                 return -1;
             descriptor->sub_descriptors_refs = av_malloc(descriptor->sub_descriptors_count * sizeof(UID));
             url_fskip(pb, 4); /* useless size of objects, always 16 according to specs */
-            get_buffer(pb, descriptor->sub_descriptors_refs, descriptor->sub_descriptors_count * sizeof(UID));
+            get_buffer(pb, (uint8_t *)descriptor->sub_descriptors_refs, descriptor->sub_descriptors_count * sizeof(UID));
             break;
         default:
             url_fskip(pb, size);