优化代码逻辑

This commit is contained in:
xiongziliang 2020-06-30 21:11:59 +08:00
parent 9e42772b48
commit d2c052a673

View File

@ -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);
}