The getopt_long func is return integer data type is more than 1 bytes.

Signed-off-by: Lim Siew Hoon <[email protected]>
---
 test/encode/h264encode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 },
-- 
2.1.0

_______________________________________________
Libva mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to