[vlc-commits] mediacodec: more unsigned members

Thomas Guillem git at videolan.org
Wed Mar 23 14:51:39 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 17 12:59:45 2016 +0100| [63d781a0054f2ef46d355b0962145d901eeb82f1] | committer: Thomas Guillem

mediacodec: more unsigned members

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=63d781a0054f2ef46d355b0962145d901eeb82f1
---

 modules/codec/omxil/mediacodec.c |    3 ++-
 modules/codec/omxil/mediacodec.h |   10 +++++-----
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 539190f..6392250 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -120,7 +120,8 @@ struct decoder_sys_t
         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;
diff --git a/modules/codec/omxil/mediacodec.h b/modules/codec/omxil/mediacodec.h
index 4b862fd..85b0c25 100644
--- a/modules/codec/omxil/mediacodec.h
+++ b/modules/codec/omxil/mediacodec.h
@@ -53,16 +53,16 @@ struct mc_api_out
         {
             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
             {
-                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;



More information about the vlc-commits mailing list