GNOME Bugzilla – Bug 556184
[PATCH] mpeg2dec: prefer container's pixel aspect ratio over the stream's
Last modified: 2008-10-14 12:51:50 UTC
When an MPEG 2 video stream is inside a container that specifies a custom pixel-aspect-ratio for it (e.g. in MKV), the PAR is currently ignored. See also bug 555699 for the same problem with theoradec: http://bugzilla.gnome.org/show_bug.cgi?id=555699 With the following patch (based on Wim Taymans' patch for theoradec), mpeg2dec uses the PAR of the container if it is set.
Created attachment 120528 [details] [review] prefer container's PAR over stream's in gstmpeg2dec.c
2008-10-14 Sebastian Dröge <slomo@circular-chaos.org> Patch by: Robin Stocker <robin at nibor dot org> * ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_init), (handle_sequence), (gst_mpeg2dec_setcaps): * ext/mpeg2dec/gstmpeg2dec.h: Prefer the container's PAR over the stream's PAR if it's given in the srcpad caps. Fixes bug #556184.