Bug 1267887 - Document MP4AudioInfo::IsValid(). r=jya

Jean-Yves and I both found this logic confusing.

MozReview-Commit-ID: C5phemRPDQZ
This commit is contained in:
Ralph Giles committed 2016-06-29 09:13:15 -07:00
1 parent 94e09e7b34
commit 17441712ca
1 file changed
+1
@@ -156,6 +156,7 @@ bool
MP4AudioInfo::IsValid() const
{
return mChannels > 0 && mRate > 0 &&
// Accept any mime type here, but if it's aac, validate the profile.
(!mMimeType.Equals(MEDIA_MIMETYPE_AUDIO_AAC) ||
mProfile > 0 || mExtendedProfile > 0);
}