Skip to content

Commit

Permalink
Fix ossrs#2570, remove useless audio track info in PMT when no audio …
Browse files Browse the repository at this point in the history
…and refine code
  • Loading branch information
root authored and root committed Nov 17, 2021
1 parent 9eb3e60 commit 8adaae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/src/kernel/srs_kernel_ts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2616,7 +2616,7 @@ SrsTsContextWriter::~SrsTsContextWriter()
srs_error_t SrsTsContextWriter::write_audio(SrsTsMessage* audio)
{
srs_error_t err = srs_success;
if(acodec != audio->acodec) {
if (acodec != audio->acodec) {
acodec = audio->acodec;
}

Expand Down Expand Up @@ -2700,7 +2700,7 @@ void SrsTsContextWriter::flush_all_msg()
srs_trace("flush all msg in cache, msg size:%d, the acodec:%d, the vcodec:%d", size, acodec, vcodec);
ts_msg_cache_for_verify_codec.clear();
}

return;
}

Expand Down

0 comments on commit 8adaae6

Please sign in to comment.