Rename AspectRatio to PixelAspectRatio in video backend files

RESOLVED FIXED

Status

()

defect
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: cajbir, Assigned: cajbir)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

fix
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.
Posted patch fix (obsolete) — Splinter Review
Attachment #446453 - Flags: review?(kinetik)
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+
Posted patch fixSplinter Review
Addresses review comment to remove local aspectRatio usage.
Attachment #446453 - Attachment is obsolete: true
Attachment #446654 - Flags: review+
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/229f7795d5d1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.