mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
x264enc: Put pixel-aspect-ratio from input into the src pad caps
Fixes bug #612995.
This commit is contained in:
parent
33fbac5b92
commit
43b366ce52
1 changed files with 3 additions and 1 deletions
|
@ -809,7 +809,9 @@ gst_x264_enc_set_src_caps (GstX264Enc * encoder, GstPad * pad, GstCaps * caps)
|
||||||
outcaps = gst_caps_new_simple ("video/x-h264",
|
outcaps = gst_caps_new_simple ("video/x-h264",
|
||||||
"width", G_TYPE_INT, encoder->width,
|
"width", G_TYPE_INT, encoder->width,
|
||||||
"height", G_TYPE_INT, encoder->height,
|
"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);
|
structure = gst_caps_get_structure (outcaps, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue