Skip to content

Commit

Permalink
Fix regex tide-mpd
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhuili committed Jan 28, 2017
1 parent 1befa5e commit 97aab31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tide-mpd/tide-mpd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void processmpdFile(string filename, int &timescale, int &duration, string &vide
cout << XMLString::transcode(docRootNode->getAttributes()->getNamedItem(XMLString::transcode("mediaPresentationDuration"))->getNodeValue()) << endl;

string rawTotalDuration = XMLString::transcode(docRootNode->getAttributes()->getNamedItem(XMLString::transcode("mediaPresentationDuration"))->getNodeValue());
regex r("PT(\\d*)H?(\\d*)M?(\\d*)S?");
regex r("PT(\\d*H)?(\\d*M)?(\\d*S)?");
smatch m;
regex_search(rawTotalDuration, m, r);

Expand Down

0 comments on commit 97aab31

Please sign in to comment.