mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-12-05 09:21:59 +08:00
修复默认音频参数相关bug
Some checks are pending
Android / build (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Docker / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows / build (push) Waiting to run
Some checks are pending
Android / build (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Docker / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows / build (push) Waiting to run
This commit is contained in:
parent
d1f3961326
commit
aa56576b0e
@ -38,7 +38,7 @@ CodecId getCodecU() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Track::Ptr getTrackByCodecId_l(CodecId codec, int sample_rate, int channels, int sample_bit) {
|
Track::Ptr getTrackByCodecId_l(CodecId codec, int sample_rate, int channels, int sample_bit) {
|
||||||
return (sample_rate && channels && sample_bit) ? std::make_shared<G711Track>(codec, sample_rate, channels, sample_bit) : nullptr;
|
return std::make_shared<G711Track>(codec, sample_rate, 1, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
Track::Ptr getTrackByCodecIdA(int sample_rate, int channels, int sample_bit) {
|
Track::Ptr getTrackByCodecIdA(int sample_rate, int channels, int sample_bit) {
|
||||||
|
@ -65,7 +65,7 @@ public:
|
|||||||
|
|
||||||
* [AUTO-TRANSLATED:397b982e]
|
* [AUTO-TRANSLATED:397b982e]
|
||||||
*/
|
*/
|
||||||
static Track::Ptr getTrackByCodecId(CodecId codecId, int sample_rate = 0, int channels = 0, int sample_bit = 0);
|
static Track::Ptr getTrackByCodecId(CodecId codecId, int sample_rate = 0, int channels = 1, int sample_bit = 16);
|
||||||
|
|
||||||
// //////////////////////////////rtsp相关////////////////////////////////// [AUTO-TRANSLATED:884055ec]
|
// //////////////////////////////rtsp相关////////////////////////////////// [AUTO-TRANSLATED:884055ec]
|
||||||
// //////////////////////////////rtsp相关//////////////////////////////////
|
// //////////////////////////////rtsp相关//////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user