summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Massiot <massiot@via.ecp.fr>2015-05-13 11:13:12 +0200
committerChristophe Massiot <massiot@via.ecp.fr>2015-05-13 11:13:12 +0200
commit82312868a3dbe3e2ba60f3ffc9fd5a4185481e84 (patch)
tree579eb7eb04899a234de86f7cfe01499c5bdc2544
parent004d7163a70b796d77ff21807ff7493198d042f3 (diff)
parent54f097116cbc8868c6175fc0630758196feeb40b (diff)
Merge pull request #31 from quarium/rtp_prepend
upipe_rtp_prepend: set a default 90k clock rate
-rw-r--r--lib/upipe-modules/upipe_rtp_prepend.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/upipe-modules/upipe_rtp_prepend.c b/lib/upipe-modules/upipe_rtp_prepend.c
index a1ce5d6..fb237ec 100644
--- a/lib/upipe-modules/upipe_rtp_prepend.c
+++ b/lib/upipe-modules/upipe_rtp_prepend.c
@@ -70,6 +70,7 @@
#define DEFAULT_TYPE 96 /* first dynamic rtp type */
#define DEFAULT_TS_SYNC UPIPE_RTP_PREPEND_TS_SYNC_CR
+#define DEFAULT_CLOCKRATE 90000
#define RTP_TYPE_INVALID UINT8_MAX
/** upipe_rtp_prepend structure */
@@ -329,7 +330,7 @@ static int upipe_rtp_prepend_infer_clockrate(struct upipe *upipe,
}
upipe_warn_va(upipe, "cannot infer rtp clock rate from %s", def);
- upipe_rtp_prepend->clockrate = 0;
+ upipe_rtp_prepend->clockrate = DEFAULT_CLOCKRATE;
return UBASE_ERR_NONE;
}