libv4l-rockchip_v2: support V4L2_CID_MPEG_VIDEO_PREPEND_SPSPPS_TO_IDR control
Support the upstream V4L2_CID_MPEG_VIDEO_PREPEND_SPSPPS_TO_IDR that will
eventually replace our own V4L2_CID_MPEG_VIDEO_H264_SPS_PPS_BEFORE_IDR.
BUG=b:167992324
TEST=emerge-kevin libv4lplugins
Cq-Depend: chromium:2400594
Change-Id: I06d81d4412750bbd8d1cd5ab1c0703b1387218f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libv4lplugins/+/2402978
Tested-by: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Auto-Submit: Alexandre Courbot <acourbot@chromium.org>
diff --git a/libv4l-rockchip_v2/libv4l-encplugin-rockchip.c b/libv4l-rockchip_v2/libv4l-encplugin-rockchip.c
index 009c207..270cd28 100644
--- a/libv4l-rockchip_v2/libv4l-encplugin-rockchip.c
+++ b/libv4l-rockchip_v2/libv4l-encplugin-rockchip.c
@@ -504,6 +504,7 @@
runtime_param_ptr->bitrate = ext_ctrls->controls[i].value;
break;
case V4L2_CID_MPEG_VIDEO_H264_SPS_PPS_BEFORE_IDR:
+ case V4L2_CID_MPEG_VIDEO_PREPEND_SPSPPS_TO_IDR:
ctx->init_param.h264e.h264_sps_pps_before_idr =
ext_ctrls->controls[i].value;
break;