From 35a5b089ce12c7b6e9e262addf77e40c7e1cffd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Wed, 9 Jan 2008 10:45:01 +0000 Subject: [PATCH] Make pes_compute_duration() public --- pes.c | 5 +---- pes.h | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pes.c b/pes.c index 33df2fdb..dace71ce 100644 --- a/pes.c +++ b/pes.c @@ -32,9 +32,6 @@ static void pes_compute_dts(th_transport_t *t, th_stream_t *st, th_pkt_t *pkt); static void pes_compute_pts(th_transport_t *t, th_stream_t *st, th_pkt_t *pkt); -static void pes_compute_duration(th_transport_t *t, th_stream_t *st, - th_pkt_t *pkt); - #define getu32(b, l) ({ \ uint32_t x = (b[0] << 24 | b[1] << 16 | b[2] << 8 | b[3]); \ @@ -314,7 +311,7 @@ pes_compute_pts(th_transport_t *t, th_stream_t *st, th_pkt_t *pkt) * Compute duration of a packet, we do this by keeping a packet * until the next one arrives, then we release it */ -static void +void pes_compute_duration(th_transport_t *t, th_stream_t *st, th_pkt_t *pkt) { th_pkt_t *next; diff --git a/pes.h b/pes.h index 1f9bff96..ff95cf0f 100644 --- a/pes.h +++ b/pes.h @@ -22,4 +22,6 @@ int pes_packet_input(th_transport_t *th, th_stream_t *st, uint8_t *data, size_t len); +void pes_compute_duration(th_transport_t *t, th_stream_t *st, th_pkt_t *pkt); + #endif /* PES_H */