Closed
Bug 567056
Opened 15 years ago
Closed 15 years ago
Rename AspectRatio to PixelAspectRatio in video backend files
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
People
(Reporter: cajbir, Assigned: cajbir)
Details
Attachments
(1 file, 1 obsolete file)
6.64 KB,
patch
|
cajbir
:
review+
|
Details | Diff | Splinter Review |
AspectRatio was renamed to PixelAspectRatio as part of a refactoring/cleanup of the media code when the webm decoder was written.
Assignee | ||
Comment 1•15 years ago
|
||
Attachment #446453 -
Flags: review?(kinetik)
Comment 2•15 years ago
|
||
Comment on attachment 446453 [details] [diff] [review]
fix
float aspectRatio = 0;
// Set a default callback period for if we have no video data
mCallbackPeriod = 1000 / AUDIO_FRAME_RATE;
if (mTheoraState) {
if (mTheoraState->Init()) {
mCallbackPeriod = mTheoraState->mFrameDuration;
- aspectRatio = mTheoraState->mAspectRatio;
+ aspectRatio = mTheoraState->mPixelAspectRatio;
gfxIntSize sz(mTheoraState->mInfo.pic_width,
mTheoraState->mInfo.pic_height);
- mDecoder->SetVideoData(sz, mTheoraState->mAspectRatio, nsnull);
+ mDecoder->SetVideoData(sz, mTheoraState->mPixelAspectRatio, nsnull);
We never use the aspectRatio variable so we can remove it.
Attachment #446453 -
Flags: review?(kinetik) → review+
Updated•15 years ago
|
Keywords: checkin-needed
Updated•15 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 3•15 years ago
|
||
Addresses review comment to remove local aspectRatio usage.
Attachment #446453 -
Attachment is obsolete: true
Attachment #446654 -
Flags: review+
Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•