mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 675630 - Fix null dereference in media memory reporter. r=cpearce
This commit is contained in:
parent
237262a45f
commit
b760b58bf8
@ -476,6 +476,9 @@ public:
|
||||
|
||||
virtual void* operator()(void* anObject) {
|
||||
const VideoData* v = static_cast<const VideoData*>(anObject);
|
||||
if (!v->mImage) {
|
||||
return nsnull;
|
||||
}
|
||||
NS_ASSERTION(v->mImage->GetFormat() == mozilla::layers::Image::PLANAR_YCBCR,
|
||||
"Wrong format?");
|
||||
mozilla::layers::PlanarYCbCrImage* vi = static_cast<mozilla::layers::PlanarYCbCrImage*>(v->mImage.get());
|
||||
|
Loading…
Reference in New Issue
Block a user