Richard Fuchs
60a3637b20
MT#63317 type safety for free functions
...
Change-Id: I31cf09d7bd8d00626f95dc84a3cd9e0c48026d49
11 months ago
Richard Fuchs
2794c885d8
MT#63317 add inline q_free
...
and rename str_q_free to avoid clash
Change-Id: I0ff141c2cbe3284c4a3662a17bf201ee14c25fe8
11 months ago
Richard Fuchs
facedafa44
MT#63317 allow use of void functions for typed HT
...
Change-Id: I7c5ac91ab1249b7552295c430d53bc2c93f4ca07
11 months ago
Richard Fuchs
df6ac133d3
MT#55283 compile fix for older glibc
...
Change-Id: Ia300c32cd9d68833d0fa90763df7d34c3fe465d5
11 months ago
Richard Fuchs
64d3c7646c
MT#63317 parse out RTP header extensions
...
Stub function for now.
Change-Id: I7ad2a203f42fb118e50273a57772cac4fbd1738f
11 months ago
Richard Fuchs
2f52fb2511
MT#63317 return RTP extensions from rtp_payload
...
Change-Id: If7451e3d32ba39cab40f6f09488cd75ccbefa1cc
11 months ago
Richard Fuchs
fc9cb21d8a
MT#63317 store extmap entries in media object
...
Change-Id: Ia673ae3049f5c6ce8dd8516b5becc0a9322559d8
11 months ago
Richard Fuchs
f4724b2eae
MT#63317 annotate rtp_padding
...
Change-Id: I47107efbc4114c1e40dd600607a5cc028a84855b
11 months ago
Richard Fuchs
3540a8334f
MT#63317 annotate rtp_payload
...
Change-Id: Ib8ba5e2002c75ec711c2f8e04b4e98b9a5fc8e0a
11 months ago
Richard Fuchs
25a28db9ec
MT#55283 fix naughty bit field bug
...
Change-Id: I865b54e0296b04009001e3df75db33a2745a3647
12 months ago
Richard Fuchs
89313ed074
MT#55283 call del_item callback even on failure
...
Relevant during shutdown. Make sure all late_port_release objects are
still appended to the global queue.
Change-Id: I8aa6c2a8ddabdf7296a6934e51ce420c5587ac53
12 months ago
Richard Fuchs
8a3d8c911d
MT#63317 re-fix extension parsing
...
Basically a revert of Ie62fa4ed
Maybe this is correct now?
Change-Id: Ia2b1b5d35c2a209430a23110f1b929e2b1ac80fb
12 months ago
Richard Fuchs
1546d8a23b
MT#61977 add oauth/JWT helpers
...
Change-Id: Ic8e54fb23f0f6403da638adaf5c3600f767caf90
12 months ago
Richard Fuchs
c13c9166e2
MT#61977 add up/download capability to HTTP
...
Change-Id: I50334482c9316aed5315ad5814ae54081856ef90
12 months ago
Richard Fuchs
0b5d094382
MT#61977 add S3 auth helpers
...
Change-Id: I9131556c995d514c2ec2b3eabd9eff4a9e8df23b
12 months ago
Richard Fuchs
453ede0913
MT#61977 add http/curl wrappers
...
Change-Id: Iefa4f0acfadabae38ff1da4c20dda51718f9580f
12 months ago
Richard Fuchs
7d37d8b835
MT#55283 set frame size after avcodec_open2
...
The frame size might not be set before avcodec_open2 is called. Move
setting it to below the call.
Fixes MP3 recording output.
Change-Id: Ie81528e64c2497f769d19a5c54228bf0f5cd138d
12 months ago
Richard Fuchs
08239c9510
MT#55283 clarify _destroy_ptr
...
Change-Id: Ib453648d21e907bffd7120a9c9b50275f7bf0846
1 year ago
Richard Fuchs
f2a9111fb6
MT#55283 distinguish transcoding PTs
...
PTs that were remembered from a previous handshake to save codec options
must be flagged as such so that they're not considered as having been
present in the current offer, so that they can be flagged as transcoding
PTs.
closes #1989
Change-Id: I19c2aff7e83ed338a81be99544645821165304cd
1 year ago
Richard Fuchs
98c088fced
MT#55283 silence asan warning
...
Change-Id: I131e51fc826a52fb571e78f09aea3aa99e9e7e1f
1 year ago
Richard Fuchs
c0b245b979
MT#55283 support SO_TIMESTAMP_OLD
...
Supports obscure situations where the old 32-bit timestamp is returned
Change-Id: I8423cd04baa9fd49e254d88d17e3e609ee5a20bb
1 year ago
Richard Fuchs
649e225bc9
MT#55283 fix alloc alignment
...
We need at least 64 bits for atomic64
Change-Id: I08724d204f2a1603088c8737ca096a4b64314f6b
1 year ago
Richard Fuchs
675eb7bea6
MT#55283 fix int size issues
...
Change-Id: Ibd7bdea16ae57a4a86076a05b22bb3ca64be8ce1
1 year ago
Richard Fuchs
262d1f7b5e
MT#63317 fix RTP extension parsing
...
Change-Id: Ie62fa4ed2dc16d42d579c34b1fe541955759dfed
1 year ago
Richard Fuchs
70be9e6ca3
MT#55283 use gcc for .S files
...
Change-Id: I67375e10356c131fc49d01f74a0aa9c93adf9ae5
1 year ago
Richard Fuchs
4cfaf1a3cf
MT#63151 remove duplication of files during make
...
Change-Id: I67f45a52660b089748c4f6f76c564bbc97fa1899
1 year ago
Richard Fuchs
e600a58502
MT#63151 make poller.h override more specific
...
Change-Id: I6ec6fdde8305615dc999021568a1277f22d3e075
1 year ago
Richard Fuchs
eda9cc5ded
MT#63151 move asan flags
...
Change-Id: I0c4d23a0a5c45e4a9011a697f9cff09ff513bb17
1 year ago
Richard Fuchs
799830902e
MT#55283 ignore G.729 fmtp
...
closes #1971
Change-Id: Ide2577b76de1f26844a9c73e169bcad96ee2a90e
1 year ago
Richard Fuchs
9c83de9ce6
MT#55283 update format_parse to bool
...
Change-Id: If0f8740afa5f159e1649db023a2c340093f3d145
1 year ago
Richard Fuchs
fa8123e1c2
MT#55283 explicitly return PTS/duration
...
... from packetizer function instead of putting it into the AVPacket.
Remove AVPacket from callback function arguments.
Fix up PTS/duration adjustments where they were missing.
Closes #1963
Change-Id: Ib36b36bb6648b0579dd83155c7217317dda29cc3
1 year ago
Richard Fuchs
92ee47116a
MT#55283 ignore fmtp for G.711
...
closes #1948
Change-Id: Iacb4a48cb0d3bef86aed85d5f87a89cc063e6c49
1 year ago
Richard Fuchs
3df26cf2d0
MT#55283 improve G.729 format matching
...
RFC says that annex B is the default in the absence of the annexb=no
format string. Consider the alias "G729a" as annex A.
Closes #1951
Change-Id: I9a8483ee5520bf4688601123f1ebec4f1f480642
1 year ago
Richard Fuchs
76dd9ab56d
MT#55283 fix off by one bug
...
Closes #1937
Change-Id: I9362e05165648820506eb2c95267e9a245fb32d9
1 year ago
Richard Fuchs
7893b1a830
MT#55283 extend G729a compatibility
...
Change-Id: I6079d06ada8acec1771f27677f3043d34e4c9f20
1 year ago
Richard Fuchs
8353a298f9
MT#55283 check codec-chain load status
...
Change-Id: I176ed2b35de41cc6a8ae90d80a781f385d6d8371
1 year ago
Richard Fuchs
cf22d82932
MT#55283 eliminate input/output combination SSRC
...
Change-Id: I94636b7f6fb6fb31cd3bf332fffe0203e17f6c16
1 year ago
Richard Fuchs
636c9f193f
MT#55283 add L16 and G726 support
...
Change-Id: Id12bd895cc8ce99d6988360bedaff75fb0b5a362
1 year ago
Richard Fuchs
58e45c26e0
MT#55283 scale mode_change_interval
...
Change-Id: I62c1b8c27e9453a1bf62a4d8a9ba7169fe663712
1 year ago
Richard Fuchs
03d961bfd0
MT#55283 scale cmr_interval
...
Change-Id: I0fb2e9c521d6185883b1843980ae5695ece6c992
1 year ago
Richard Fuchs
50b44b4ab3
MT#55283 convert streambuf to int64_t
...
Change-Id: I856072b6e82c854b676dd43ae2c7120d68caad2c
1 year ago
Richard Fuchs
71f2234902
MT#55283 obsolete timeval_diff
...
Change-Id: I83ea176acd77cdd9c371e4c8cde324bdfc3c2486
1 year ago
Richard Fuchs
283abdf465
MT#55283 convert mix_buffer to int64_t
...
Change-Id: I13343b4cce82440e9a54fd9c26731f27abe57ba5
1 year ago
Richard Fuchs
358723e1c2
MT#55283 remove some unused functions
...
Change-Id: I8989e7c4191c2c670f65f39a44479e1ed394893a
1 year ago
Richard Fuchs
2a6853c219
MT#55283 obsolete timeval_cmp
...
Change-Id: I824ea19696e690afdbb21346f75ca16a6410b56b
1 year ago
Richard Fuchs
9018099467
MT#55283 convert timeval_cmp to int64_t
...
Change-Id: I99a2029f81c3a2efa626ac4b752cddc06d77fe3b
1 year ago
Richard Fuchs
8d050d5fc9
MT#55283 convert codeclib to int64_t
...
Change-Id: Ic1e36ce97561addbf3a869e39991c20d1e25adf1
1 year ago
Richard Fuchs
a4bd720105
MT#55283 convert time_t to int64_t
...
Change-Id: I9664249782355f7363a46bafcca6504415585875
1 year ago
Richard Fuchs
165c42fb8e
MT#55283 convert calls to int64_t
...
Change-Id: I7c9a2229ba3eea418e009bb04def336476d2ec25
1 year ago
Richard Fuchs
20ffa4f780
MT#55283 convert timerthread to int64_t
...
Change-Id: Ia7bdb7538428edef1ff83d7bd8f6116d5e618510
1 year ago
Richard Fuchs
f34786dade
MT#55283 convert media_packet to int64_t
...
Change-Id: I4b1da113cf01d34473027987d4ee60215655fdec
1 year ago
Richard Fuchs
c70510303a
MT#55283 convert rtpe_now to int64_t
...
First step in converting (almost) all timeval uses to int64_t
Change-Id: If20fd749c61c278273c535b68287df7e6f042808
1 year ago
Richard Fuchs
d75e44829d
MT#55283 replace UINT64F with PRIu64
...
Change-Id: I604226d2515dae6b7a348426b5e997dafc840042
1 year ago
Richard Fuchs
238dc9d5be
MT#55283 integrate ssrc_hash into upper objects
...
Change-Id: Ib8f78ef6bc3028fc342fe07253ebe628af322e55
1 year ago
Richard Fuchs
75aa3038db
MT#55283 convert ssrc_hash to g_direct
...
Change-Id: I5cd5a308a8c5f6fefed94e4f594eee3a31b0f6fd
1 year ago
Richard Fuchs
859ac06626
MT#55283 use non-glib atomic macros in more places
...
Change-Id: Ia1e92f1d665a1773d25160a1ed4e4e93ae7b8ec2
1 year ago
Richard Fuchs
1779beeea0
MT#55283 fix atomic_compare_exchange macro
...
Change-Id: I25900efc7cef0f8b699ab9a1c17224c950d15d38
1 year ago
Richard Fuchs
0623b6b9de
MT#61625 tie codec-chain into transcode-config
...
Change-Id: Ida6e51b8b4ef3cefe738ccd1678ec86763e93711
1 year ago
Richard Fuchs
0b654d9854
MT#55283 add rtpe_g_tree_first shortcut
...
Change-Id: I71ab7965c9edf988dc501673cdb714a7bb8b5725
1 year ago
Richard Fuchs
75884b8d58
MT#55283 add dedicated g_tree_first wrapper
...
Change-Id: I4f7a366d37ab2c67d57f4217133725917b2e726b
1 year ago
Richard Fuchs
5460ca1f90
MT#55283 properly namespace g_tree helpers
...
Change-Id: Ie3097da52012a91b1e5d9d5c7dabe901ff2d9d72
1 year ago
Richard Fuchs
198a6053bf
MT#55283 support reworked framework
...
Change-Id: I947996343b09f38d1e14eee1d215a83e764f43cf
1 year ago
Richard Fuchs
4d8156bf91
MT#55283 remove remnants of g_slice
...
The GLib slice allocator has been obsoleted. Having a mixture of two
allocators can lead to hidden issues on systems that use different
implementations. Take the leap and replace everything with g_new/g_free.
Change-Id: I025c8383ef47b2c2472573360407fd6a6ca339b3
1 year ago
Richard Fuchs
b742dbc460
MT#55283 protect against duplicate a=mid
...
Media IDs are supposed to be unique. Non-RFC OSRTP may however lead to
duplicated media sections with the same media ID. Use a hash table to
track which media IDs have already been seen, and ignore any duplicates.
Change-Id: I9de5fdf3165fc4326862af708aec3d4f6736cb12
1 year ago
Richard Fuchs
2c636fd1c1
MT#55283 add lib/ Makefile
...
There is a generated file left behind (codeclib.strhash.c) that needs to
be cleaned up by `make clean`
Ref: https://bugs.debian.org/1101804
Change-Id: I22eef1124a84107478ef6058abb127eb65fc9aa5
1 year ago
Richard Fuchs
094c3d93d2
MT#55283 report correct error
...
Change-Id: I102a52434581569c04f255a3fd09a39599e3fff2
1 year ago
Richard Fuchs
8e1bbc24df
MT#55283 allow stack storage for dummy uring send
...
Change-Id: Iae5067f7e8bd492f10db946160d2c4af54c2fc2b
1 year ago
Richard Fuchs
dd91f0ec11
MT#55283 centralise uring methods
...
Introduce struct to keep uring-specific thread-local method pointers
Change-Id: I7b0d1fd82cf5f3d114e8072553cb74054ac7e133
1 year ago
Richard Fuchs
f090376d9a
MT#55283 move defines
...
to a more appropriate place to remove an otherwise unneeded dependency
Change-Id: If82707e937a9102de1a405a25f7f3f436df878e6
1 year ago
Richard Fuchs
6c19b19069
MT#55283 type safety for uring allocs
...
Change-Id: I1f1e49b986f7a2cd83b898167e0c314b8862bb69
1 year ago
Richard Fuchs
bcbe751dec
MT#55283 make bufferpool (mostly) lock-free
...
Change-Id: I9c6803c3b01deacafc20bcca4c6ddd89fd69d3e9
1 year ago
Richard Fuchs
26072ed6a1
MT#55283 support CFLAGS in str hash helper
...
Fixes #1919
Change-Id: Ibac4475c96063b69868546e54e27f9f61b7b909b
1 year ago
Richard Fuchs
95f75d690b
MT#55283 use embedded links in bufferpool
...
Avoids repeated calls to allocator
Change-Id: I2b85fef3d0fd976bc9bf8a4b0cb9b29b62318cbf
1 year ago
Richard Fuchs
58054f2c0f
MT#55283 use typed queue for bpool shards
...
Change-Id: Iebe8286a930add93a179cbf0dabc08ea23152f37
1 year ago
Richard Fuchs
0551c2549a
MT#55283 obsolete bufferpool shard array
...
Remove the sorted pointer array and the associated lock. We can now
directly look up the shard associated with a particular memory block and
so this isn't needed any more.
Change-Id: I6b2972c3b8837cdabdf92cf957c69dc2d559a06c
1 year ago
Richard Fuchs
d43575dc06
MT#55283 look up bufferpool shard from metadata
...
Use the pointer we stored as metadata to quickly look up the respective
shard.
Change-Id: I01c39d9dbe229bb9bd98d90efb95adfe076e426d
1 year ago
Richard Fuchs
69e634f94a
MT#55283 store metadata head pointer
...
Put a pointer to the shard itself in the beginning of the buffer. This
facilitates quick lookup.
Change-Id: I0109d77e56afac3189775dd708970288f175dfe6
1 year ago
Richard Fuchs
f7fbe490b0
MT#55283 request aligned addresses from mmap
...
Or rather, request double the amount, then use the contained aligned
block.
Change-Id: Iaf1da4b3df243a1d4391fc2ff46eba1fec3d738c
1 year ago
Richard Fuchs
9bd5670f89
MT#55283 use fixed allocation size
...
Allocate all bufferpool shards of the same size, regardless of
underlying allocator. This way increase memory usage a bit, but we're
already quite heavy on that, so no big deal.
Change-Id: Icbe09cd2f9b33bc58ab1efe7de293dea00236fec
1 year ago
Richard Fuchs
1a837e6ab1
MT#55283 add `empty` pointer
...
With this we can reserve some head room to store our own metadata.
Change-Id: I525c2df7db85ce22c0a4a9810e4c75fdd7731c0c
1 year ago
Richard Fuchs
5f9e43b3e0
MT#55283 move alignment macros to header file
...
Change-Id: I266cbefe8351f77399bb6e50b2122f9a45249529
1 year ago
Richard Fuchs
1a98502a1b
MT#55283 used aligned memory for bufferpool
...
Use allocators that return memory blocks aligned to the requested size,
instead of generic malloc. This makes it easier to play tricks with the
memory blocks.
Change-Id: Iad4b1127c76e48c2e9b4ad8489118d4883a24f6a
1 year ago
Richard Fuchs
ef7aa06801
MT#55283 shorten lock duration
...
We can do the freeing safely after having removed the shard from the
list.
Change-Id: I15d7ec71b0c44b916571c420b07c715ad2feaf50
1 year ago
Richard Fuchs
162e982088
MT#55283 fix typo
...
Technically inconsequential because both functions call the same
underlying pthread_rwlock_unlock
Change-Id: I6fddc55f70772592d17f496e5c16edf6ba7a88e5
1 year ago
Richard Fuchs
6b5fac9dc7
MT#61625 add "transcode-config"
...
Adds a new config section that allows adjusting behaviour for certain
transcoding scenarios. This only adds the initial support for the config
option.
Change-Id: Ia3d43061adc540fab054e5c99ab804dc1ff53b84
1 year ago
Richard Fuchs
605b497108
MT#55283 unconditionally demux RTCP
...
This seems to be an acceptable and reliable way to detect RTCP
multiplexed with RTP, even if `a=rtcp-mux` wasn't advertised in the SDP.
Take the opportunity to clean up __streams_set_sinks() a bit by giving
the variables better names.
Change-Id: I0cdc5e4a544641591fc2aabca12fb11bab3453f7
1 year ago
Richard Fuchs
4a03cbd996
MT#55283 fix g_ptr_array_sort usage
...
The compare function receives pointers to pointers as arguments.
Change-Id: I93abaa635f94207de826deb6523d8c847bef0860
1 year ago
Richard Fuchs
8ab206c26a
MT#61625 add t_slist_free_full wrapper
...
Change-Id: Ib47bc4890ecfeac5a6814505abe77b4454cda5e3
1 year ago
Richard Fuchs
fc3ce1f81d
MT#55283 safeguard auto cleanup function
...
Change-Id: I4aa6f604a74cb5f6467745bdea214954227dc0eb
1 year ago
Richard Fuchs
b1e69f74dd
MT#61625 fix getsockname call
...
Change-Id: If58e83e3bd03d39b552ed1e843d31baefe5c8e37
1 year ago
Richard Fuchs
ccccded287
MT#55283 add evs-dtx= option
...
Change-Id: I6489895e31e1fcf1c72c9767b122189f22f58792
1 year ago
Richard Fuchs
de47c13b0b
MT#55283 add missing EVS DTX handling
...
Change-Id: I04882d64df1f08d733a4fb87747f13c807e2795c
1 year ago
Richard Fuchs
6a5d3412f8
MT#55283 move out EVS frame generation code
...
Changes to a hard-coded sample format (clock rate, channels) and
directly modifies dec->pts.
Change-Id: I1b9f71af4a252cdc0f795ca91e525ff19f6cc580
1 year ago
Richard Fuchs
b2599aba54
MT#61625 add getsockname abstraction
...
Change-Id: Ib89e235c3b8ea5a1038d09dfd8a7895d5753401c
2 years ago
Richard Fuchs
69ac1b1c9d
MT#61625 allow send/recv without endpoint address
...
Change-Id: I61f301baec69788228325f79194755b828b3858d
2 years ago
Richard Fuchs
af789073a7
MT#61625 add socket_rcvtimeout helper
...
Change-Id: I17de1f5948e64712fb60bd96708c07ea87cfe010
2 years ago
Richard Fuchs
c99a4691b4
MT#55283 use GPOINTER_TO_UINT
...
Change-Id: I5e8ee279aa193c1b7f71a01c42fa3482856b9b30
2 years ago
Richard Fuchs
bebec5eee4
MT#55283 add extra typed GPtrArray methods
...
Change-Id: If67ac73a5f7f7e767d8f8eb09a77ca552ab81148
2 years ago
Richard Fuchs
587c0dac82
MT#55283 convert __socket to bool
...
Change-Id: I1b631456716d37c188d473763fab6d5114573b01
2 years ago
Richard Fuchs
09c4c84d03
MT#55283 move helpers out of the way
...
Change-Id: I207d000c7c2cfca9c139518cc0111355b6414d60
2 years ago