summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLim Siew Hoon <siew.hoon.lim@intel.com>2016-07-28 09:12:41 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2016-08-22 13:04:29 +0800
commit636e9cd5f7cf34aa8a2e9e8c855a4c151544b51e (patch)
tree4514e79cb41a4523a502684df1b4bb00e27bd8e1
parente145ec38cba3ac4e453a5612fb64a012cb053d71 (diff)
Changed 'c' variable 'char' data type to 'int' data type (v3)
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> (cherry picked from commit def5691f789b897b47af7f2a7ffa3b135a93950d)
-rw-r--r--test/encode/avcenc.c2
-rw-r--r--test/encode/h264encode.c2
-rwxr-xr-xtest/putsurface/putsurface_common.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/encode/avcenc.c b/test/encode/avcenc.c
index d5f2bd5..4bebbc0 100644
--- a/test/encode/avcenc.c
+++ b/test/encode/avcenc.c
@@ -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;
diff --git a/test/encode/h264encode.c b/test/encode/h264encode.c
index 649b245..8d8ea30 100644
--- a/test/encode/h264encode.c
+++ b/test/encode/h264encode.c
@@ -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 },
diff --git a/test/putsurface/putsurface_common.c b/test/putsurface/putsurface_common.c
index c50c116..fa0249a 100755
--- a/test/putsurface/putsurface_common.c
+++ b/test/putsurface/putsurface_common.c
@@ -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];