GithubHelp home page GithubHelp logo

Comments (4)

licaiguo avatar licaiguo commented on August 17, 2024

Can you post sample code to use openh264?

from openh264.

ArikYa avatar ArikYa commented on August 17, 2024

Just using hello world application that link with the api definitions:
test.cpp:

#include <stdio.h>
#include "codec/api/svc/codec_api.h"

int main(int argc, char *argv[])
{
    printf("Hello world!");
    return 0;
}

If I compile it with -Wnon-virtual-dtor, I get a warning, and if I include -Werror, it fails:

gcc -Wnon-virtual-dtor -Werror -o test.o test.cpp

the result is:

./codec/api/svc/codec_api.h:54:7: error: 'ISVCEncoder' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor]
class ISVCEncoder {
      ^
./codec/api/svc/codec_api.h:95:7: error: 'ISVCDecoder' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor]
class ISVCDecoder {
      ^
2 errors generated.

When trying to use OpehH264 together with WebRTC, the Android native code builds with these two options, so it fails. I think that fixing this in the OpenH264 code is the right place to do it.

from openh264.

licaiguo avatar licaiguo commented on August 17, 2024

This issue is fixed in pull request #725.

from openh264.

ArikYa avatar ArikYa commented on August 17, 2024

Thanks

from openh264.

Related Issues (20)

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.