aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-02-17 15:52:38 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-02-17 15:52:38 +0100
commitbf8d28efe5a3d2e17e33cb8c865286ffa76a819b (patch)
tree0e67e4d4e9f44137e4434742e634e8eb388c95ca
parenta61064fcef13f38e304fc119aaa910871c38190b (diff)
v4l2-compliance: add missing V4L2_PIX_FMT_H264_SLICE
Stateless H.264 decoders where not recognized as such by v4l2-compliance. Add the missing case V4L2_PIX_FMT_H264_SLICE. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: Nicolas Dufresne <nicolas@ndufresne.ca>
-rw-r--r--utils/v4l2-compliance/v4l2-compliance.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index 3191e9c0..b6e0d57b 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -532,9 +532,11 @@ static void determine_codec_mask(struct node &node)
case V4L2_PIX_FMT_FWHT:
mask |= STATEFUL_ENCODER;
break;
+#if 0 // There are no stateless encoders (yet)
case V4L2_PIX_FMT_MPEG2_SLICE:
mask |= STATELESS_ENCODER;
break;
+#endif
default:
return;
}
@@ -571,6 +573,7 @@ static void determine_codec_mask(struct node &node)
mask |= STATEFUL_DECODER;
break;
case V4L2_PIX_FMT_MPEG2_SLICE:
+ case V4L2_PIX_FMT_H264_SLICE:
case V4L2_PIX_FMT_FWHT_STATELESS:
mask |= STATELESS_DECODER;
break;

Privacy Policy