Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdr428 committed Aug 9, 2023
1 parent 17c5ec5 commit d4b84b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tsMuxer/matroskaParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ void ParsedSRTTrackData::extractData(AVPacket* pkt, uint8_t* buff, const int siz
prefix = "\xEF\xBB\xBF"; // UTF-8 header
prefix += int32ToStr(++m_packetCnt);
prefix += "\n";
prefix += floatToTime(pkt->pts / static_cast<double>(INTERNAL_PTS_FREQ), ',');
prefix += floatToTime(static_cast<double>(pkt->pts) / INTERNAL_PTS_FREQ, ',');
prefix += " --> ";
prefix += floatToTime((pkt->pts + pkt->duration) / static_cast<double>(INTERNAL_PTS_FREQ), ',');
prefix += floatToTime(static_cast<double>(pkt->pts + pkt->duration) / INTERNAL_PTS_FREQ, ',');
prefix += '\n';
const std::string postfix = "\n\n";
pkt->size = static_cast<int>(size + prefix.length() + postfix.length());
Expand Down
2 changes: 1 addition & 1 deletion tsMuxer/movDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ int MovDemuxer::mov_read_trex(MOVAtom atom)
MOVTrackExt& trex = trex_data[trex_data.size() - 1];
get_byte(); // version
get_be24(); // flags
tr = get_be32();
trex.track_id = get_be32();
trex.stsd_id = get_be32();
trex.duration = get_be32();
trex.size = get_be32();
Expand Down

0 comments on commit d4b84b5

Please sign in to comment.