x264enc: Put pixel-aspect-ratio from input into the src pad caps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 16 Mar 2010 14:05:06 +0000 (15:05 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 16 Mar 2010 14:05:06 +0000 (15:05 +0100)
Fixes bug #612995.

ext/x264/gstx264enc.c

index ffd97ab..70b2dc8 100644 (file)
@@ -809,7 +809,9 @@ gst_x264_enc_set_src_caps (GstX264Enc * encoder, GstPad * pad, GstCaps * caps)
   outcaps = gst_caps_new_simple ("video/x-h264",
       "width", G_TYPE_INT, encoder->width,
       "height", G_TYPE_INT, encoder->height,
-      "framerate", GST_TYPE_FRACTION, encoder->fps_num, encoder->fps_den, NULL);
+      "framerate", GST_TYPE_FRACTION, encoder->fps_num, encoder->fps_den,
+      "pixel-aspect-ratio", GST_TYPE_FRACTION, encoder->par_num,
+      encoder->par_den, NULL);
 
   structure = gst_caps_get_structure (outcaps, 0);