Ticket #11855: rawtextsubs.patch

File rawtextsubs.patch, 657 bytes (added by Jim Stichnoth, 7 years ago)
  • mythtv/libs/libmythtv/avformatdecoder.cpp

    diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
    index d181920..3a42b40 100644
    a b bool AvFormatDecoder::ProcessRawTextPacket(AVPacket *pkt) 
    37773777
    37783778    QTextCodec *codec = QTextCodec::codecForName("utf-8");
    37793779    QTextDecoder *dec = codec->makeDecoder();
    3780     QString text      = dec->toUnicode((const char*)pkt->data, pkt->size);
     3780    QString text      = dec->toUnicode((const char*)pkt->data, pkt->size - 1);
    37813781    QStringList list  = text.split('\n', QString::SkipEmptyParts);
    37823782    delete dec;
    37833783