mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 21:12:26 +00:00
ogg: theora PAR of 0:N, N:0 or 0:0 is allowed and maps to 1:1
See #609252.
This commit is contained in:
parent
5f777a96be
commit
466894d2f4
1 changed files with 6 additions and 6 deletions
|
@ -312,14 +312,14 @@ setup_theora_mapper (GstOggStream * pad, ogg_packet * packet)
|
|||
G_TYPE_INT, h, NULL);
|
||||
}
|
||||
|
||||
/* PAR of 0:N, N:0 and 0:0 is allowed and maps to 1:1 */
|
||||
if (par_n == 0 || par_d == 0)
|
||||
par_n = par_d = 1;
|
||||
|
||||
/* only add framerate now so caps look prettier, with width/height first */
|
||||
gst_caps_set_simple (pad->caps, "framerate", GST_TYPE_FRACTION,
|
||||
pad->granulerate_n, pad->granulerate_d, NULL);
|
||||
|
||||
if (par_n > 0 && par_d > 0) {
|
||||
gst_caps_set_simple (pad->caps, "pixel-aspect-ratio", GST_TYPE_FRACTION,
|
||||
par_n, par_d, NULL);
|
||||
}
|
||||
pad->granulerate_n, pad->granulerate_d, "pixel-aspect-ratio",
|
||||
GST_TYPE_FRACTION, par_n, par_d, NULL);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue