Bug 1177243 - Use PodZero rather than memset in WebM decoders. r=rillian

This commit is contained in:
Matthew Gregan 2015-06-25 17:23:35 -07:00
parent 520cfef82a
commit 42251be975
2 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@ IntelWebMVideoDecoder::Demux(nsRefPtr<VP8Sample>& aSample, bool* aEOS)
}
vpx_codec_stream_info_t si;
memset(&si, 0, sizeof(si));
PodZero(&si);
si.sz = sizeof(si);
if (mReader->GetVideoCodec() == NESTEGG_CODEC_VP8) {
vpx_codec_peek_stream_info(vpx_codec_vp8_dx(), data, length, &si);

View File

@ -30,7 +30,7 @@ SoftwareWebMVideoDecoder::SoftwareWebMVideoDecoder(WebMReader* aReader)
mReader(aReader)
{
MOZ_COUNT_CTOR(SoftwareWebMVideoDecoder);
memset(&mVPX, 0, sizeof(vpx_codec_ctx_t));
PodZero(&mVPX);
}
SoftwareWebMVideoDecoder::~SoftwareWebMVideoDecoder()
@ -128,7 +128,7 @@ SoftwareWebMVideoDecoder::DecodeVideoFrame(bool &aKeyframeSkip,
}
vpx_codec_stream_info_t si;
memset(&si, 0, sizeof(si));
PodZero(&si);
si.sz = sizeof(si);
if (mReader->GetVideoCodec() == NESTEGG_CODEC_VP8) {
vpx_codec_peek_stream_info(vpx_codec_vp8_dx(), data, length, &si);