[gstreamer-bugs] [Bug 338991] [patch] Videoscale doesn't pass on pixel-aspect ratio
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Sun Apr 23 08:22:29 PDT 2006
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=338991
GStreamer | gst-plugins-base | Ver: HEAD CVS
------- Comment #4 from Fernando Herrera 2006-04-23 15:22 UTC -------
Notice that also adding pixel-aspect-ratio to the above pipeline makes it loop
forever.
This code works for me for calculating width/height when only one of them is
provided:
/* start with same height, because of interlaced video */
if (h) {
GST_DEBUG_OBJECT (base, "keeping video height");
w = h * num / den;
} else if (w) {
GST_DEBUG_OBJECT (base, "keeping video width");
h = w * den / num;
} else {
GST_DEBUG_OBJECT (base, "approximating but keeping video height");
h = from_h;
w = h * num / den;
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list