Skip to content
/ mixxx Public
  • Rate limit · GitHub

    Access has been restricted

    You have triggered a rate limit.

    Please wait a few minutes before you try again;
    in some cases this may take up to an hour.

  • Notifications You must be signed in to change notification settings
  • Fork 1.3k

Commit

Permalink
track/seratomarkers2: Fix UTF-8 label length calculation of CUE/LOOP …
Browse files Browse the repository at this point in the history
…entries
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

Holzhaus committed Oct 22, 2019
1 parent ec1f382 commit ac9ffc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/track/seratomarkers2.cpp
Original file line number Diff line number Diff line change
@@ -166,7 +166,7 @@ QByteArray SeratoMarkers2CueEntry::data() const {
}

quint32 SeratoMarkers2CueEntry::length() const {
return 13 + m_label.length();
return 13 + m_label.toUtf8().length();
}

SeratoMarkers2EntryPointer SeratoMarkers2LoopEntry::parse(const QByteArray &data)
@@ -263,7 +263,7 @@ QByteArray SeratoMarkers2LoopEntry::data() const {
}

quint32 SeratoMarkers2LoopEntry::length() const {
return 21 + m_label.length();
return 21 + m_label.toUtf8().length();
}

bool SeratoMarkers2::parse(SeratoMarkers2* seratoMarkers2, const QByteArray& outerData) {

0 comments on commit ac9ffc4

Please sign in to comment.