diff --git a/dom/media/MediaInfo.h b/dom/media/MediaInfo.h index 38d571fd3f4b..cd066502f217 100644 --- a/dom/media/MediaInfo.h +++ b/dom/media/MediaInfo.h @@ -220,7 +220,7 @@ public: bool IsValid() const override { - return mImage.width > 0 && mImage.height > 0; + return mDisplay.width > 0 && mDisplay.height > 0; } VideoInfo* GetAsVideoInfo() override diff --git a/media/libstagefright/binding/DecoderData.cpp b/media/libstagefright/binding/DecoderData.cpp index fb1c8af32d90..505f20828e9a 100644 --- a/media/libstagefright/binding/DecoderData.cpp +++ b/media/libstagefright/binding/DecoderData.cpp @@ -210,7 +210,7 @@ MP4VideoInfo::Update(const mp4parse_track_info* track, bool MP4VideoInfo::IsValid() const { - return mImage.width > 0 && mImage.height > 0; + return mDisplay.width > 0 && mDisplay.height > 0; } }