mediacodec: more unsigned members
authorThomas Guillem <thomas@gllm.fr>
Thu, 17 Mar 2016 11:59:45 +0000 (12:59 +0100)
committerThomas Guillem <thomas@gllm.fr>
Wed, 23 Mar 2016 13:47:24 +0000 (14:47 +0100)
modules/codec/omxil/mediacodec.c
modules/codec/omxil/mediacodec.h

index 539190f..6392250 100644 (file)
@@ -120,7 +120,8 @@ struct decoder_sys_t
         struct
         {
             AWindowHandler *p_awh;
         struct
         {
             AWindowHandler *p_awh;
-            int i_pixel_format, i_stride, i_slice_height, i_width, i_height;
+            unsigned int i_stride, i_slice_height, i_width, i_height;
+            int i_pixel_format;
             uint8_t i_nal_length_size;
             size_t i_h264_profile;
             ArchitectureSpecificCopyData ascd;
             uint8_t i_nal_length_size;
             size_t i_h264_profile;
             ArchitectureSpecificCopyData ascd;
index 4b862fd..85b0c25 100644 (file)
@@ -53,16 +53,16 @@ struct mc_api_out
         {
             int i_index;
             mtime_t i_ts;
         {
             int i_index;
             mtime_t i_ts;
-            const void *p_ptr;
-            int i_size;
+            const uint8_t *p_ptr;
+            size_t i_size;
         } buf;
         union
         {
             struct
             {
         } buf;
         union
         {
             struct
             {
-                int width, height;
-                int stride;
-                int slice_height;
+                unsigned int width, height;
+                unsigned int stride;
+                unsigned int slice_height;
                 int pixel_format;
                 int crop_left;
                 int crop_top;
                 int pixel_format;
                 int crop_left;
                 int crop_top;