diff --git a/system/nxcamera/nxcamera_main.c b/system/nxcamera/nxcamera_main.c index 17c235d1c..5ca84da11 100644 --- a/system/nxcamera/nxcamera_main.c +++ b/system/nxcamera/nxcamera_main.c @@ -157,7 +157,8 @@ static int nxcamera_cmd_stream(FAR struct nxcamera_s *pcam, FAR char *parg) 0 }; - sscanf(parg, "%hd %hd %d %4s", &width, &height, &framerate, cc); + sscanf(parg, "%"SCNu16" %"SCNu16" %"SCNu32" %4s", + &width, &height, &framerate, cc); format = v4l2_fourcc(cc[0], cc[1], cc[2], cc[3]); /* Try to stream raw data with settings specified */