http://blog.csdn.net/mjlsuccess/article/details/22194653

http://www.cnblogs.com/weiweiqiao99/archive/2010/11/14/1877208.html

int PacketDataSaveThread::savePacketData(int id, AVPacket *pkt)
{
    int ret = 0;
    QString filename;

    filename.append(QString::number(pkt->stream_index)).append("_").append(QString::number(id)).append(".pkt");

    QFile file(filename);
    file.open(QIODevice::WriteOnly);
    file.write(QByteArray((const char *)pkt->data, pkt->size));
    file.close();

    return ret;
}

 

相关文章:

  • 2021-12-01
  • 2021-08-19
  • 2021-06-26
  • 2021-07-21
  • 2022-02-04
  • 2022-02-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2021-09-30
  • 2021-11-11
  • 2021-10-06
相关资源
相似解决方案