OSDN Git Service

Changed 'c' variable 'char' data type to 'int' data type (v3)
authorLim Siew Hoon <siew.hoon.lim@intel.com>
Thu, 28 Jul 2016 01:12:41 +0000 (09:12 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 1 Aug 2016 02:29:54 +0000 (10:29 +0800)
The getopt_long func is return integer data type is more than 1 bytes.

Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
test/encode/avcenc.c
test/encode/h264encode.c
test/putsurface/putsurface_common.c

index d5f2bd5..4bebbc0 100644 (file)
@@ -1876,7 +1876,7 @@ int main(int argc, char *argv[])
     picture_height_in_mbs = (picture_height + 15) / 16;
 
     if (argc > 5) {
-        char o;
+        int o;
 
         optind = 5;
 
index 649b245..8d8ea30 100644 (file)
@@ -860,7 +860,7 @@ static int print_help(void)
 
 static int process_cmdline(int argc, char *argv[])
 {
-    char c;
+    int c;
     const struct option long_opts[] = {
         {"help", no_argument, NULL, 0 },
         {"bitrate", required_argument, NULL, 1 },
index c50c116..fa0249a 100755 (executable)
@@ -514,7 +514,7 @@ int main(int argc,char **argv)
     VAStatus va_status;
     pthread_t thread1;
     int ret;
-    char c;
+    int c;
     int i;
     char str_src_fmt[5], str_dst_fmt[5];