Compare commits

...

2 Commits

Author SHA1 Message Date
PioLing
a972fa85ec
修复某些流带aud帧不兼容的问题 (#4379)
Some checks failed
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
2025-08-06 12:02:43 +08:00
二进制橙汁
ba877759da
src/Record/Recorder.h 引入 <cstdint> 头文件 (#4374)
CMake 构建编译报错,需要在 `src/Record/Recorder.h` 中引入 `<cstdint>` 头文件。
2025-08-06 12:02:02 +08:00
2 changed files with 5 additions and 4 deletions

View File

@ -153,10 +153,6 @@ bool H264Track::ready() const {
bool H264Track::inputFrame(const Frame::Ptr &frame) {
using H264FrameInternal = FrameInternal<H264FrameNoCacheAble>;
int type = H264_TYPE(frame->data()[frame->prefixSize()]);
if (type == H264Frame::NAL_AUD) {
// AUD帧丢弃
return false;
}
if ((type == H264Frame::NAL_B_P || type == H264Frame::NAL_IDR) && ready()) {
return inputFrame_l(frame);
}
@ -266,6 +262,10 @@ Track::Ptr H264Track::clone() const {
bool H264Track::inputFrame_l(const Frame::Ptr &frame) {
int type = H264_TYPE(frame->data()[frame->prefixSize()]);
if (type == H264Frame::NAL_AUD) {
// AUD帧丢弃
return false;
}
bool ret = true;
switch (type) {
case H264Frame::NAL_SPS: {

View File

@ -13,6 +13,7 @@
#include <memory>
#include <string>
#include <cstdint>
namespace mediakit {
class MediaSinkInterface;