Make pes_compute_duration() public
This commit is contained in:
parent
ac083afb9a
commit
35a5b089ce
2 changed files with 3 additions and 4 deletions
5
pes.c
5
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;
|
||||
|
|
2
pes.h
2
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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue