Giter Site home page Giter Site logo

mpegts's People

Contributors

akanchi avatar andersc avatar ecameron avatar permobergedge avatar sirenoremac avatar tomasoh-ateliere avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mpegts's Issues

demuxer is sensitive to buffer size

i.e. I guess usually one will read chunks from a file in some arbtrary size (4k page size for example) and feed that to the demuxer. but the demuxer rarely checks wether the buffer is exhausted and thus depends on either some magic block size or the whole file being fed at once. this can be easily verified by replacing UnitTest1::muxOutput with

void UnitTest1::muxOutput(SimpleBuffer &rTsOutBuffer) {
    //Double to fail at non integer data
    double packets = (double) rTsOutBuffer.size() / 188.0;
    if (packets != (int) packets) {
        std::cout << "Payload not X * 188 " << std::endl;
        mUnitTestStatus = false;
    }

    uint8_t* lpData = rTsOutBuffer.data();

    for (int lI = 0 ; lI < packets ; lI++) {
        auto p = lpData+(lI*188);
        SimpleBuffer lIn;
        lIn.append(p, 100);
        mDemuxer.decode(lIn);
        lIn.clear();
        lIn.append(p + 100, 88);
        mDemuxer.decode(lIn);
    }
}

which feeds the demuxer the same data, but in smaller chunks, which makes the test fail miserably.

Windows build

While Windows may not be a target, during my attempt to build I've run into two issues:

[ERROR] OUTPUT>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\any(429): error C2338: any_cast<T>(any&&) requires T to be constructible from remove_cv_t<remove_reference_t<T>>
[INFO] OUTPUT>c++/TSHandler.cpp(384): note: see reference to function template instantiation '_Ty &std::any_cast<std::shared_ptr<MpegTsDemuxer>&>(std::any &&)' being compiled
[INFO] OUTPUT>        with
[INFO] OUTPUT>        [
[INFO] OUTPUT>            _Ty=std::shared_ptr<MpegTsDemuxer> &
[INFO] OUTPUT>        ]

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.