Ticket #464: transcode-segv.diff

File transcode-segv.diff, 616 bytes (added by Stuart Auchterlonie, 14 years ago)

patch to fix segv when passed file to transcode by name

  • programs/mythtranscode/main.cpp

    old new  
    390390    {
    391391        QFileInfo inf(infile);
    392392        QString base = inf.baseName();
    393         QRegExp r("(\\d*)_(\\d\\d\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)_");
     393        QRegExp r("(\\d*)_(\\d\\d\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)");
    394394        int pos = r.search(base);
    395395        if (pos > -1)
    396396        {