Bug 1369950 - Remove aom_codec_stream_info_t sz field references. r=gerald
Upstream has removed the requirement to set this when
initializing the stream_info struct.
MozReview-Commit-ID: 24OJ550Ral
--- a/dom/media/platforms/agnostic/AOMDecoder.cpp
+++ b/dom/media/platforms/agnostic/AOMDecoder.cpp
@@ -232,17 +232,16 @@ AOMDecoder::IsSupportedCodec(const nsASt
aCodecType.Equals(version);
}
/* static */
bool
AOMDecoder::IsKeyframe(Span<const uint8_t> aBuffer) {
aom_codec_stream_info_t info;
PodZero(&info);
- info.sz = sizeof(info);
auto res = aom_codec_peek_stream_info(aom_codec_av1_dx(),
aBuffer.Elements(),
aBuffer.Length(),
&info);
if (res != AOM_CODEC_OK) {
LOG_RESULT(res, "couldn't get keyframe flag with aom_codec_peek_stream_info");
return false;
@@ -251,17 +250,16 @@ AOMDecoder::IsKeyframe(Span<const uint8_
return bool(info.is_kf);
}
/* static */
nsIntSize
AOMDecoder::GetFrameSize(Span<const uint8_t> aBuffer) {
aom_codec_stream_info_t info;
PodZero(&info);
- info.sz = sizeof(info);
auto res = aom_codec_peek_stream_info(aom_codec_av1_dx(),
aBuffer.Elements(),
aBuffer.Length(),
&info);
if (res != AOM_CODEC_OK) {
LOG_RESULT(res, "couldn't get frame size with aom_codec_peek_stream_info");
}