Closed
Bug 569470
Opened 16 years ago
Closed 16 years ago
useless casts in VideoData::Create
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: timeless)
References
()
Details
Attachments
(1 file)
|
962 bytes,
patch
|
cpearce
:
review+
|
Details | Diff | Splinter Review |
156 class VideoData {
165 struct YCbCrBuffer {
166 struct Plane {
167 PRUint8* mData;
168 PRUint32 mWidth;
169 PRUint32 mHeight;
170 PRUint32 mStride;
171 };
173 Plane mPlanes[3];
88 VideoData* VideoData::Create(nsVideoInfo& aInfo,
127 if (!AddOverflow32(aInfo.mPicture.x, aInfo.mPicture.width, picXLimit) ||
128 picXLimit > PRUint32(aBuffer.mPlanes[0].mStride) ||
129 !AddOverflow32(aInfo.mPicture.y, aInfo.mPicture.height, picYLimit) ||
130 picYLimit > PRUint32(aBuffer.mPlanes[0].mHeight))
Both mHeight and mStride are already PRUint32 ....
Comment 2•16 years ago
|
||
Comment on attachment 448699 [details] [diff] [review]
patch
Thanks!
Attachment #448699 -
Flags: review?(chris) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•