CCodec: require static HDR info support for AV1 HDR10 profile
AV1 bitstream supports HDR static info
(https://aomediacodec.github.io/av1-spec/av1-spec.pdf sections 5.8.3.
and 5.8.4.).
Bug: 232293598
Change-Id: Ida905ff3596025a84624d05ba45e4d2c1777ba02
diff --git a/media/codec2/sfplugin/Codec2InfoBuilder.cpp b/media/codec2/sfplugin/Codec2InfoBuilder.cpp
index 7e02009..58e1c7f 100644
--- a/media/codec2/sfplugin/Codec2InfoBuilder.cpp
+++ b/media/codec2/sfplugin/Codec2InfoBuilder.cpp
@@ -150,9 +150,10 @@
}
}
- // For VP9/AV1, the static info is always propagated by framework.
+ // VP9 does not support HDR metadata in the bitstream and static metadata
+ // can always be carried by the framework. (The framework does not propagate
+ // dynamic metadata as that needs to be frame accurate.)
supportsHdr |= (mediaType == MIMETYPE_VIDEO_VP9);
- supportsHdr |= (mediaType == MIMETYPE_VIDEO_AV1);
// HDR support implies 10-bit support.
// TODO: directly check this from the component interface