From bbdcc44eb05b9b05f2fb0ea85ff5534962a1ce9c Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Tue, 11 Oct 2022 16:53:27 +0800 Subject: [PATCH] mute audio maker avoid uint32_t cycle and 8k aac a frame is 128ms --- src/Common/MediaSink.cpp | 2 +- src/Common/MediaSink.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common/MediaSink.cpp b/src/Common/MediaSink.cpp index 1f8050ab..06d577d3 100644 --- a/src/Common/MediaSink.cpp +++ b/src/Common/MediaSink.cpp @@ -223,7 +223,7 @@ static uint8_t s_mute_adts[] = {0xff, 0xf1, 0x6c, 0x40, 0x2d, 0x3f, 0xfc, 0x00, #define MUTE_ADTS_DATA s_mute_adts #define MUTE_ADTS_DATA_LEN sizeof(s_mute_adts) -#define MUTE_ADTS_DATA_MS 130 +#define MUTE_ADTS_DATA_MS 128 bool MuteAudioMaker::inputFrame(const Frame::Ptr &frame) { if (frame->getTrackType() == TrackVideo) { diff --git a/src/Common/MediaSink.h b/src/Common/MediaSink.h index 449f666e..0e41821b 100644 --- a/src/Common/MediaSink.h +++ b/src/Common/MediaSink.h @@ -61,7 +61,7 @@ public: bool inputFrame(const Frame::Ptr &frame) override; private: - uint32_t _audio_idx = 0; + uint64_t _audio_idx = 0; }; /**