diff options
author | Jan Schmidt <jan@centricular.com> | 2021-05-29 06:03:26 +1000 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-07-15 04:46:03 +0000 |
commit | 30e105561d537f0a00e93ac1fcc126f22b2d5e35 (patch) | |
tree | 2083ca538a57c194ba6dfe9f223d0035dfd37d55 /gst | |
parent | fdca97eca839d4e6c365ab98e8f8f6d877f860f1 (diff) | |
download | gstreamer-plugins-bad-30e105561d537f0a00e93ac1fcc126f22b2d5e35.tar.gz |
mpegtsmux: Quieten "missed PCR" warnings in VBR mode.
When the muxer is operating in VBR mode, it's kind of expected
for now that we might not put the PCR in exactly the right place,
because the muxer doesn't schedule packets that way. In that case
don't warn constantly about the PCR ending up a few ms off target.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2295>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpegtsmux/tsmux/tsmux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mpegtsmux/tsmux/tsmux.c b/gst/mpegtsmux/tsmux/tsmux.c index 632f9f8f4..d0e0eb1ee 100644 --- a/gst/mpegtsmux/tsmux/tsmux.c +++ b/gst/mpegtsmux/tsmux/tsmux.c @@ -1369,7 +1369,7 @@ write_new_pcr (TsMux * mux, TsMuxStream * stream, gint64 cur_pcr, TSMUX_PACKET_FLAG_ADAPTATION | TSMUX_PACKET_FLAG_WRITE_PCR; stream->pi.pcr = cur_pcr; - if (stream->next_pcr != -1 && cur_pcr >= stream->next_pcr) { + if (mux->bitrate && stream->next_pcr != -1 && cur_pcr >= stream->next_pcr) { GST_WARNING ("Writing PCR %" G_GUINT64_FORMAT " missed the target %" G_GUINT64_FORMAT " by %f ms", cur_pcr, stream->next_pcr, (double) (cur_pcr - stream->next_pcr) / 27000.0); |