diff --git a/src/Extension/AACRtmp.cpp b/src/Extension/AACRtmp.cpp index 5355146b..c2e5de6c 100644 --- a/src/Extension/AACRtmp.cpp +++ b/src/Extension/AACRtmp.cpp @@ -55,13 +55,13 @@ void AACRtmpDecoder::onGetAAC(const char* data, int len, uint32_t stamp) { frame->_prefix_size = 0; } - if(len){ + if(len > 0){ //追加负载数据 frame->_buffer.append(data, len); frame->_dts = stamp; } - if(size || len){ + if(size > 0 || len > 0){ //有adts头或者实际aac负载 RtmpCodec::inputFrame(frame); }