Commit Graph

1950 Commits

Author SHA1 Message Date
sauwming 12aa75e317
Add ability in stream to modify Opus codec parameters on the fly (#3189) 2022-07-26 15:06:24 +08:00
Nanang Izzuddin 6ff18b4f8a
Lock ordering issue in video conference bridge (#3183) 2022-07-21 15:10:54 +07:00
sauwming 72311468f2
Perform async rendering in the main thread on Mac & iOS (#3166) 2022-07-07 14:56:56 +08:00
Nanang Izzuddin 563a7bfcfd
Fix assertion due to bad rtpmap attribute generated by pjmedia_endpt_create_audio_sdp(). (#3167) 2022-07-05 09:29:22 +07:00
Nanang Izzuddin d5fc07cc03
Random crash due to invoking SRTP APIs on custom media transport instance (#3145) 2022-06-20 12:26:59 +08:00
Nanang Izzuddin 85f7a694a8
Allow screensaver when using SDL 2.0.2 (#3111) 2022-05-20 11:43:19 +07:00
Nanang Izzuddin d671704abe
Add run time settings to enable/disable RTCP-XR in account config (#3110) 2022-05-20 11:42:55 +07:00
Riza Sulistyo c3d260dc33
Prevent assertion when codec enc wide size is larger than height size (#3044) 2022-05-09 14:48:36 +07:00
Nanang Izzuddin ad39e53ad2
Fix AVI player: compile warning and unchecked file_read() return value (#3092) 2022-05-09 09:31:27 +07:00
sauwming 7231318c9c
Fixed build failure in Xamarin C# project (#3032) 2022-05-04 09:32:55 +08:00
Riza Sulistyo 8e196d82b7
Add checks when parsing RTCP FB (#3055) 2022-05-04 09:15:03 +08:00
Nanang Izzuddin e9346c5071
Update media event poll timeout (#3086) 2022-04-27 18:36:19 +07:00
Riza Sulistyo 947bc1ee6d
Merge pull request from GHSA-rwgw-vwxg-q799
* Prevent potential infinite loop when parsing WAV format file

* Check if subchunk is negative.

* Fix and add checks

* Change data type from pj_ssize_t to long.

* Modify check

* Fix leak file descriptor and modify check on wav_playlist

* Move overflow/underflow check to pj_file_setpos()

* Use macro to simplify check

* modification based on comments

* Remove unnecessary casting

* Modification based on comments
2022-04-25 12:54:19 +08:00
Riza Sulistyo d2006a43bb
Fail sending periodic RTP transmission on silence (#3080) 2022-04-25 11:44:01 +08:00
Sean d653375c60
Android - Create new ImageReader instance before opening camera (#3063) 2022-04-14 18:49:08 +08:00
Nanang Izzuddin b9f52784a3
Fix tonegen plays twice faster in stereo mode. (#3056) 2022-04-07 14:26:33 +07:00
Nanang Izzuddin 9d8a6efc91
Crash due to stop & restart race conditions in Oboe (#3046) 2022-04-06 11:39:03 +07:00
Riza Sulistyo 11559e49e6
Merge pull request from GHSA-vhxv-phmx-g52q
* Prevent OOB read/write when parsing RTCP FB RPSI

* Add log information

* Modification based on comments.
2022-04-06 11:40:09 +08:00
sauwming a3f08177c4
Set Oboe usage to voice communication (#3033) 2022-03-24 10:37:53 +08:00
Nanang Izzuddin 560a1346f8
Merge pull request from GHSA-f5qg-pqcg-765m 2022-03-22 16:30:47 +08:00
sauwming 6f197385c7
Miscellaneous fixes (#2969)
* Suppressed various compilation warnings
* Fixed CodeQL warning
* Fixed build warning on Android and Linux
* Fix build warning on Visual Studio
* Update target Android SDK version to 29 (for pjsua2 & app), to avoid gradle error: 'Google Play requires that apps target API level 29 or higher'.
* Add support for Camera2 API to ipjsua android app.
* Fix assertion on Win32 app (MSVC2005) because ICE transport info size is 160 bytes while the allocated buffer is just 144 bytes.
* Enable python unit test on windows for github actions.
* Avoid assertion in pjsua test caused by double calling of pjsua_conf_remove_port()
2022-02-24 14:46:01 +07:00
Riza Sulistyo 88b91260ad
Handle padding included on image from Camera2 API (#2991) 2022-02-22 11:47:09 +08:00
Riza Sulistyo 0ac02c2c8d
Prevent memory leak on OpenH264 due to multiple decoder allocation (#2987) 2022-02-22 11:41:07 +08:00
sauwming 87a63f1725
Reenable periodic RTP transmission on silence (#2989) 2022-02-22 11:39:10 +08:00
sauwming 9b37e587bc
Add feature to init SRTP ROC and check if SRTP ROC needs to be reset/maintained (#2846) 2022-02-18 10:06:29 +08:00
Riza Sulistyo 835d4073d7
Fix decode issue on FFMpeg 4.3.2 (#2976) 2022-02-15 10:56:01 +08:00
George Joseph 668a828631
Add additional unit test options (#2961) 2022-02-11 12:28:03 +08:00
Nanang Izzuddin 639e7dc7e6
Add Oboe audio device backend for Android (#2707) 2022-02-08 13:58:29 +08:00
Nanang Izzuddin 2d5a37f92e
Replace deprecated Android Camera framework with Camera2 (#2797) 2022-02-08 11:39:27 +08:00
Nanang Izzuddin 6bda5dfb6b
NAT64: handle special case where server put FQDN (which resolved to IPv6 only) in SDP answer. (#2926) 2022-02-08 11:33:51 +08:00
sauwming d979253c92
Merge pull request from GHSA-qcvw-h34v-c7r9
* Perform buffer length checks

* Add asssertion sanity checks
2022-02-08 08:15:07 +08:00
sauwming 22af44e68a
Merge pull request from GHSA-m66q-q64c-hv36
* Prevent OOB read during RTP/RTCP parsing

* Add log

* Add more logs
2022-01-26 08:03:48 +08:00
sauwming a5e052f2a5
Fix video issues upon format change (#2911) 2022-01-25 08:39:46 +08:00
sauwming f99639fede
Fix aviplay crash when using ffmpeg video codec (#2940) 2022-01-24 11:40:15 +08:00
sauwming b771df4663
Fix missing event unsubscription in pjsua video (#2932) 2022-01-06 15:39:15 +08:00
Riza Sulistyo 1aa2c0e0fb
Merge pull request from GHSA-8fmx-hqw7-6gmc 2022-01-04 16:58:02 +08:00
jimying 88b7e0f12e
fix clock thread lock not released (#2874) 2022-01-03 18:08:34 +08:00
ryancaicse bc32549bb3
Fix some resource leaks (#2928) 2021-12-27 10:05:22 +08:00
Riza Sulistyo f74c1fc22b
Merge pull request from GHSA-r374-qrwv-86hh 2021-12-24 12:17:15 +08:00
sauwming 41b7bde0f0
Check for decoding delay in video stream (#2886) 2021-12-23 10:09:48 +08:00
sauwming 8b621f192c
Merge pull request from GHSA-3qx3-cg72-wrh9 2021-12-22 08:49:27 +08:00
Nanang Izzuddin 7dcf16dca5
Fix issues in updating media dir to "none" in the middle of a call (#2906)
* Fix issues in updating media dir to NONE in the middle of a call

* Update PJSUA2 CallSetting::mediaDir declaration for SWIG. Note: adding SWIG template for MediaDirVector as vector of pjmedia_dir enum causes some error: SWIG treats enum as int, so vector of pjmedia_dir will be wrapped as vector of int, as there is already IntVector, SWIG rejects duplicated vector of int.
2021-12-06 14:38:33 +07:00
Nanang Izzuddin 9784f78dc7
Make keyframe interval configurable in Apple VideoToolbox codecs (#2905) 2021-12-03 10:43:01 +07:00
sauwming 9526a6e56a
Play WAV data even if the data length is truncated (#2892) 2021-11-22 12:16:32 +08:00
Nanang Izzuddin 532e64ef6e
Disable auto restart socket in PJMEDIA and PJSIP transports (#2881) 2021-11-11 09:25:45 +07:00
Riza Sulistyo c5234d5418
Change interval calculation for sending keep-alive message (#2878)
* Change interval calculation for sending keep alive message

* Fix misstype
2021-11-10 21:28:45 +07:00
Riza Sulistyo 6ca06f63ec
Fix some doc warning (#2879) 2021-11-10 09:57:40 +07:00
jimying 263886b8e0
Add vp8/vp9 support to ffmpeg_vid_codecs (#2863) 2021-11-08 10:01:47 +07:00
ryancaicse 8e799da6cf
Fix a bug destroying an unreleased lock in vid stream (#2865) 2021-10-28 12:25:07 +08:00
Nanang Izzuddin d2f9563008
Add PJMEDIA_VID_STREAM_CHECK_RTP_PT setting (#2854) 2021-10-21 14:56:58 +07:00