Commit Graph

1967 Commits

Author SHA1 Message Date
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
Nanang Izzuddin f0be616769
Fix false error 'Invalid RTP packet length (PJMEDIA_RTP_EINLEN)' when decoding empty RTP. (#3283) 2022-11-07 09:49:49 +07:00
sauwming 43c8343c3d
Fixed video unhold failure when using SRTP (#3282) 2022-11-04 20:52:02 +08:00
sauwming 0610327775 Misc (re #3087): Fixed build warning on iOS (sprintf deprecated) 2022-11-01 11:21:29 +08:00
sauwming ae580f351f Misc (re #3087): Suppressed build warning on Mac 2022-11-01 11:01:45 +08:00
Riza Sulistyo 37cc6e88a7
Return error when it fails to create stream using opensl (#3182) 2022-10-19 10:16:53 +08:00
orbea c804b31f85
Fix build fail on alpine linux (with musl libc) : no execinfo.h (#3263)
The execinfo.h header is GNU specific and is not available with musl.

Gentoo Issue: https://bugs.gentoo.org/867343

Co-authored-by: jimying <yingqw.js@gmail.com>
2022-10-17 13:32:23 +08:00
Riza Sulistyo d2acb9af4e
Merge pull request from GHSA-wx5m-cj97-4wwg 2022-10-06 14:55:13 +08:00
sauwming c4d34984ec
Merge pull request from GHSA-fq45-m3f7-3mhj
* Initial patch

* Use 'pj_scan_is_eof(scanner)'

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Use 'pj_scan_is_eof(scanner)'

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Use 'pj_scan_is_eof(scanner)'

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Use `!pj_scan_is_eof` instead of manually checking `scanner->curptr < scanner->end`

Co-authored-by: Maksim Mukosey <mmukosey@gmail.com>

* Update pjlib-util/src/pjlib-util/scanner.c

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Update pjlib-util/src/pjlib-util/scanner.c

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Update pjlib-util/src/pjlib-util/scanner.c

Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>

* Revert '>=' back to '>' in pj_scan_stricmp_alnum()

* Fix error compiles.

Co-authored-by: Nanang Izzuddin <nanang@teluu.com>
Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>
Co-authored-by: Maksim Mukosey <mmukosey@gmail.com>
2022-10-03 08:07:22 +08:00
Gregor Jasny a5320984a7
Add additional H.264 levels (#3053) 2022-09-29 10:15:59 +07:00
lukas-nowak 79421add77
Find closest camera format when resolution is presented more than once (#3062) 2022-09-29 10:10:25 +07:00
Riza Sulistyo 97d38dc989
Support ffmpeg 5.1 (#3242) 2022-09-29 09:10:32 +08:00
Andreas Wehrmann 6bdcad8baf
SRTP transport: don't shadow local status variable (#3169) 2022-09-29 09:07:33 +08:00
sauwming 1c3f63e502
Set SRTP context to NULL after deallocation (#3097) 2022-09-29 08:59:20 +08:00
sauwming 875f76aa3e
Fix darwin_dev build failure on Mac (#3174) 2022-09-28 10:19:04 +08:00
Nanang Izzuddin b9a9477913
Update docs of PJMEDIA_CODEC_MAX_SILENCE_PERIOD, more codecs with internal VAD mechanism have been added. (#3251) 2022-09-22 14:02:16 +07:00
Benny Prijono c03ab41ed5
Documentation fixes for docs.pjsip.org v2.0 project (#3202)
* Improve robustness of sample apps. Fixing crash in aviplay

* Changes in documentation

* Add first pjsua2 hello world sample (from PJSUA2 guide)

* Fix doxygen documentation for docs.pjsip.org v2

* Add make clean-doc target

* Replace Trac ticket URL with GitHub issues URL

* Remove pjsip-book because the correct one is in pjproject_docs
2022-08-09 06:16:16 +07:00
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