mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
rtph26xpay: Fix the default framerate
Use 0/1 instead of 0/0 as the default framerate for rtph26{4,5}pay. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8176>
This commit is contained in:
parent
dbf4915abd
commit
1dd4a6e832
2 changed files with 8 additions and 6 deletions
|
@ -575,9 +575,10 @@ gst_rtp_h264_pay_setcaps (GstRTPBasePayload * basepayload, GstCaps * caps)
|
|||
rtph264pay->stream_format = GST_H264_STREAM_FORMAT_BYTESTREAM;
|
||||
}
|
||||
|
||||
if (!gst_structure_get_fraction (str, "framerate", &rtph264pay->fps_num,
|
||||
&rtph264pay->fps_denum))
|
||||
rtph264pay->fps_num = rtph264pay->fps_denum = 0;
|
||||
rtph264pay->fps_num = 0;
|
||||
rtph264pay->fps_denum = 1;
|
||||
gst_structure_get_fraction (str, "framerate", &rtph264pay->fps_num,
|
||||
&rtph264pay->fps_denum);
|
||||
|
||||
/* packetized AVC video has a codec_data */
|
||||
if ((value = gst_structure_get_value (str, "codec_data"))) {
|
||||
|
|
|
@ -604,9 +604,10 @@ gst_rtp_h265_pay_setcaps (GstRTPBasePayload * basepayload, GstCaps * caps)
|
|||
rtph265pay->stream_format = GST_H265_STREAM_FORMAT_BYTESTREAM;
|
||||
}
|
||||
|
||||
if (!gst_structure_get_fraction (str, "framerate", &rtph265pay->fps_num,
|
||||
&rtph265pay->fps_denum))
|
||||
rtph265pay->fps_num = rtph265pay->fps_denum = 0;
|
||||
rtph265pay->fps_num = 0;
|
||||
rtph265pay->fps_denum = 1;
|
||||
gst_structure_get_fraction (str, "framerate", &rtph265pay->fps_num,
|
||||
&rtph265pay->fps_denum);
|
||||
|
||||
|
||||
/* packetized HEVC video has a codec_data */
|
||||
|
|
Loading…
Reference in a new issue