usbvideo: Fix dissection of PROBE infos structure
authorSylvain Munaut <tnt@246tNt.com>
Sat, 31 Oct 2020 10:06:28 +0000 (11:06 +0100)
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>
Sat, 31 Oct 2020 12:33:07 +0000 (12:33 +0000)
Refer to USB Device Class Definition for Video Devices
document revision 1.5.

 * bmFramingInfo is 1 byte
 * Cut & Paste error for bMaxVersion label

Change-Id: Ib1221886f864a6ab9dbab70a8e5fca6482bf4267
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
epan/dissectors/packet-usb-video.c

index f782d58483225e5cd9333e088af29952bf1b846a..eeaad8ec9a619e67dbbd69e8f0859f12df9c340a 100644 (file)
@@ -2746,7 +2746,7 @@ proto_register_usb_vid(void)
 
             { &hf_usb_vid_probe_framing,
                     { "bmFramingInfo", "usbvideo.probe.framing",
-                            FT_UINT16, BASE_HEX, NULL, 0,
+                            FT_UINT8, BASE_HEX, NULL, 0,
                             NULL, HFILL }
             },
 
@@ -2772,7 +2772,7 @@ proto_register_usb_vid(void)
                             "Min supported payload format version", HFILL }
             },
             { &hf_usb_vid_probe_max_ver,
-                    { "bPreferredVersion", "usbvideo.probe.maxVer",
+                    { "bMaxVersion", "usbvideo.probe.maxVer",
                             FT_UINT8, BASE_DEC, NULL, 0,
                             "Max supported payload format version", HFILL }
             },