Giter Site home page Giter Site logo

mpegts's Introduction

mpegts's People

Contributors

akanchi avatar ecameron avatar sirenoremac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mpegts's Issues

Overwriting PES and mux/demux errors.

Just want to let you know that I fixed a bunch of errors in the multiplexer and demux in my fork if you want to fix in your project.

Fixes here -> My fork

In general..

Using std::string to work with binary (non string) data is a bad idea
The PES Header is destroyed in some cases
The data is corrupt when building some size PES frames..

If you run the unit tests I made you will catch all of the errors that I found so far..

I also added mBroken to indicate broken PES frames.

You can close this at any time.. This is the only way for me to make you aware of the errors since we decided not to merge my fork earlier I can't create pull requests.

/Anders

simplebuffer append

When appending bytes

void SimpleBuffer::append(const char* bytes, int size)
{
    if (size <= 0)
        return;

    _data.insert(_data.end(), bytes, bytes + size);
    _pos += size;
}

pos will be size if pos is 0
That means that ->

bool SimpleBuffer::empty()
{
    return _pos >= (int)_data.size();
}

Empty will be true (but it should not be) .. Or am I missing something?

Read PCR when demuxing.

Currently the PCR is not extracted from the stream. Would be great if the PCR is extracted (Even the case where the PCR PID is not associated with the video PID).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.