v4l2: Fix H.264 level 3 string representation
authorPhilippe Normand <philn@igalia.com>
Fri, 8 Mar 2019 14:43:20 +0000 (14:43 +0000)
committerPhilippe Normand <philn@igalia.com>
Wed, 5 Jun 2019 09:23:40 +0000 (10:23 +0100)
The string_to_level function handles "3" so the level_to_string function should
do the same, to prevent caps negotiation issues.

sys/v4l2/gstv4l2h264codec.c

index 020c64c..26a80ec 100644 (file)
@@ -185,7 +185,7 @@ v4l2_level_to_string (gint v4l2_level)
     case V4L2_MPEG_VIDEO_H264_LEVEL_2_2:
       return "2.2";
     case V4L2_MPEG_VIDEO_H264_LEVEL_3_0:
-      return "3.0";
+      return "3";
     case V4L2_MPEG_VIDEO_H264_LEVEL_3_1:
       return "3.1";
     case V4L2_MPEG_VIDEO_H264_LEVEL_3_2: